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

* DB2 connection config and ingestion update * Update ingestion/src/metadata/ingestion/source/database/common_db_source.py Co-authored-by: Ayush Shah <ayush@getcollate.io> * Update ingestion/src/metadata/ingestion/source/database/common_db_source.py Co-authored-by: Ayush Shah <ayush@getcollate.io> * Update bootstrap/sql/com.mysql.cj.jdbc.Driver/v007__create_db_connection_info.sql Co-authored-by: Ayush Shah <ayush@getcollate.io>
41 lines
1.6 KiB
SQL
41 lines
1.6 KiB
SQL
-- Remove markDeletedTablesFromFilterOnly
|
|
UPDATE ingestion_pipeline_entity
|
|
SET json = json::jsonb #- '{sourceConfig,config,markDeletedTablesFromFilterOnly}';
|
|
|
|
UPDATE data_insight_chart
|
|
SET json = jsonb_set(
|
|
json,
|
|
'{dimensions}',
|
|
'[{"name":"entityFqn","chartDataType":"STRING"},{"name":"entityType","chartDataType":"STRING"},{"name":"owner","chartDataType":"STRING"},{"name":"entityHref","chartDataType":"STRING"}]'
|
|
)
|
|
WHERE name = 'mostViewedEntities';
|
|
|
|
DROP TABLE webhook_entity;
|
|
|
|
CREATE TABLE IF NOT EXISTS alert_entity (
|
|
id VARCHAR(36) GENERATED ALWAYS AS (json ->> 'id') STORED NOT NULL,
|
|
name VARCHAR(256) GENERATED ALWAYS AS (json ->> 'name') STORED NOT NULL,
|
|
deleted BOOLEAN GENERATED ALWAYS AS ((json ->> 'deleted')::boolean) STORED,
|
|
json JSONB NOT NULL,
|
|
PRIMARY KEY (id),
|
|
UNIQUE (name)
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS alert_action_def (
|
|
id VARCHAR(36) GENERATED ALWAYS AS (json ->> 'id') STORED NOT NULL,
|
|
name VARCHAR(256) GENERATED ALWAYS AS (json ->> 'name') STORED NOT NULL,
|
|
alertActionType VARCHAR(36) GENERATED ALWAYS AS (json ->> 'alertActionType') STORED NOT NULL,
|
|
deleted BOOLEAN GENERATED ALWAYS AS ((json ->> 'deleted')::boolean) STORED,
|
|
json JSONB NOT NULL,
|
|
PRIMARY KEY (id),
|
|
UNIQUE (name)
|
|
);
|
|
|
|
UPDATE dbservice_entity
|
|
SET json = jsonb_set(json, '{connection,config,database}', json#>'{connection,config,databaseSchema}')
|
|
where serviceType in ('Db2')
|
|
and json#>'{connection,config,databaseSchema}' is not null;
|
|
|
|
UPDATE dbservice_entity
|
|
SET json = json::jsonb #- '{connection,config,databaseSchema}'
|
|
where serviceType in ('Db2'); |