mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-14 04:29:21 +00:00

* Added dbt tag classification name * resolved merge conflicts * handle ui side change for dbt schema change * Fixed migration scripts * fixed failing cypress for dbt Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.com>
26 lines
944 B
SQL
26 lines
944 B
SQL
ALTER TABLE tag_category
|
|
RENAME TO classification;
|
|
|
|
-- Rename tagCategoryName in BigQuery for classificationName
|
|
UPDATE dbservice_entity
|
|
SET json = jsonb_set(json, '{connection,config,classificationName}', json#>'{connection,config,tagCategoryName}')
|
|
where serviceType in ('BigQuery')
|
|
and json#>'{connection,config,tagCategoryName}' is not null;
|
|
|
|
-- Deprecate SampleData db service type
|
|
DELETE FROM entity_relationship er
|
|
USING dbservice_entity db
|
|
WHERE (db.id = er.fromId OR db.id = er.toId)
|
|
AND db.serviceType = 'SampleData';
|
|
|
|
DELETE FROM dbservice_entity WHERE serviceType = 'SampleData';
|
|
|
|
-- Delete supportsUsageExtraction from vertica
|
|
UPDATE dbservice_entity
|
|
SET json = json::jsonb #- '{connection,config,supportsUsageExtraction}'
|
|
WHERE serviceType = 'Vertica';
|
|
|
|
UPDATE ingestion_pipeline_entity
|
|
SET json = json::jsonb #- '{sourceConfig,config,dbtConfigSource,dbtUpdateDescriptions}'
|
|
WHERE json#>>'{sourceConfig,config,type}' = 'DBT';
|