OpenMetadata/bootstrap/sql/com.mysql.cj.jdbc.Driver/v008__create_db_connection_info.sql
Onkar Ravgan e9ac8ecb85
Fix 7972: Added dbt tag classification name (#9575)
* 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>
2023-01-06 11:08:21 +05:30

29 lines
969 B
SQL

RENAME TABLE tag_category TO classification;
-- Rename tagCategoryName in BigQuery for classificationName
UPDATE dbservice_entity
SET json = JSON_INSERT(
JSON_REMOVE(json, '$.connection.config.tagCategoryName'),
'$.connection.config.classificationName',
JSON_EXTRACT(json, '$.connection.config.tagCategoryName')
) where serviceType in ('BigQuery');
-- Deprecate SampleData db service type
DELETE er
FROM entity_relationship er
JOIN dbservice_entity db
ON db.id = er.fromId
OR db.id = er.toId
WHERE db.serviceType = 'SampleData';
DELETE FROM dbservice_entity where serviceType = 'SampleData';
-- Delete supportsUsageExtraction from vertica
UPDATE dbservice_entity
SET json = JSON_REMOVE(json, '$.connection.config.supportsUsageExtraction')
WHERE serviceType = 'Vertica';
UPDATE ingestion_pipeline_entity
SET json = JSON_REMOVE(json ,'$.sourceConfig.config.dbtConfigSource.dbtUpdateDescriptions')
WHERE json -> '$.sourceConfig.config.type' = 'DBT';