mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-25 06:28:22 +00:00
Clean up profile and test data when migrating from 0.11 to 0.12 (#7039)
* Added SQL to clean up profile and test data when migrating from 0.11 to 0.12 * Added deletion query for ingestion pipeline mysql * Added logic to delete profiler ingestion pipeline from DB * Update v004__create_db_connection_info.sql added semicolon
This commit is contained in:
parent
791245c0e8
commit
704385da0a
@ -104,3 +104,9 @@ CREATE TABLE IF NOT EXISTS openmetadata_settings (
|
||||
PRIMARY KEY (id, configType),
|
||||
UNIQUE(configType)
|
||||
);
|
||||
|
||||
DELETE FROM entity_extension
|
||||
WHERE jsonSchema IN ('tableProfile', 'columnTest', 'tableTest');
|
||||
|
||||
DELETE FROM ingestion_pipeline_entity
|
||||
WHERE LOWER(JSON_EXTRACT(json, '$.pipelineType') = 'profiler');
|
||||
@ -100,3 +100,8 @@ CREATE TABLE IF NOT EXISTS openmetadata_settings (
|
||||
UNIQUE(configType)
|
||||
);
|
||||
|
||||
DELETE FROM entity_extension
|
||||
WHERE jsonSchema IN ('tableProfile', 'columnTest', 'tableTest');
|
||||
|
||||
DELETE FROM ingestion_pipeline_entity
|
||||
WHERE json_extract_path_text("json", 'pipelineType') = 'profiler';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user