OpenMetadata/bootstrap/sql/org.postgresql.Driver/v008__create_db_connection_info.sql
Teddy 903209bc70
Fixes #9656 -- Add support for datetime type for col between (#9671)
* feat (profiler): Added support for datetime type for sqa profiler

* feat (profiler): migration file

* fix: added comment for ms timestamp logic
2023-01-11 16:51:36 +01:00

35 lines
1.2 KiB
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';
UPDATE test_definition
SET json = jsonb_set(
json,
'{supportedDataTypes}',
'["NUMBER", "INT", "FLOAT", "DOUBLE", "DECIMAL", "TINYINT", "SMALLINT", "BIGINT", "BYTEINT", "TIMESTAMP", "TIMESTAMPZ","DATETIME", "DATE"]',
false
)
WHERE json->>'name' = 'columnValuesToBeBetween';