2022-07-19 11:10:52 -07:00
|
|
|
UPDATE team_entity
|
|
|
|
SET json = JSONB_SET(json, '{teamType}', '"Department"', true);
|
|
|
|
|
|
|
|
ALTER TABLE team_entity
|
|
|
|
ADD teamType VARCHAR(64) GENERATED ALWAYS AS (json ->> 'teamType') STORED NOT NULL;
|
2022-07-20 14:12:40 +05:30
|
|
|
|
|
|
|
UPDATE dbservice_entity
|
|
|
|
SET json = json::jsonb #- '{connection,config,database}'
|
|
|
|
where serviceType = 'DynamoDB';
|
2022-07-24 16:02:26 +02:00
|
|
|
|
2022-07-24 18:49:15 +02:00
|
|
|
UPDATE dbservice_entity
|
|
|
|
SET json = json::jsonb #- '{connection,config,connectionOptions}'
|
|
|
|
where serviceType = 'DeltaLake';
|
|
|
|
|
2022-08-02 08:45:43 +02:00
|
|
|
UPDATE dbservice_entity
|
|
|
|
SET json = json::jsonb #- '{connection,config,supportsProfiler}'
|
|
|
|
where serviceType = 'DeltaLake';
|
|
|
|
|
2022-07-24 16:02:26 +02:00
|
|
|
UPDATE dashboard_service_entity
|
|
|
|
SET json = jsonb_set(json, '{connection,config,clientId}', json#>'{connection,config,username}')
|
|
|
|
WHERE serviceType = 'Looker'
|
|
|
|
and json#>'{connection,config,username}' is not null;
|
|
|
|
|
|
|
|
UPDATE dashboard_service_entity
|
|
|
|
SET json = jsonb_set(json, '{connection,config,clientSecret}', json#>'{connection,config,password}')
|
|
|
|
WHERE serviceType = 'Looker'
|
|
|
|
and json#>'{connection,config,password}' is not null;
|
|
|
|
|
|
|
|
UPDATE dashboard_service_entity
|
|
|
|
SET json = json::jsonb #- '{connection,config,username}' #- '{connection,config,password}' #- '{connection,config,env}'
|
|
|
|
WHERE serviceType = 'Looker';
|
2022-07-28 23:45:12 +05:30
|
|
|
|
2022-07-28 13:58:41 -07:00
|
|
|
CREATE TABLE IF NOT EXISTS test_definition (
|
|
|
|
id VARCHAR(36) GENERATED ALWAYS AS (json ->> 'id') STORED NOT NULL,
|
|
|
|
name VARCHAR(256) GENERATED ALWAYS AS (json ->> 'name') STORED NOT NULL,
|
|
|
|
json JSONB NOT NULL,
|
|
|
|
updatedAt BIGINT GENERATED ALWAYS AS ((json ->> 'updatedAt')::bigint) STORED NOT NULL,
|
|
|
|
updatedBy VARCHAR(256) GENERATED ALWAYS AS (json ->> 'updatedBy') STORED NOT NULL,
|
|
|
|
deleted BOOLEAN GENERATED ALWAYS AS ((json ->> 'deleted')::boolean) STORED,
|
|
|
|
UNIQUE (name)
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS test_suite (
|
|
|
|
id VARCHAR(36) GENERATED ALWAYS AS (json ->> 'id') STORED NOT NULL,
|
|
|
|
name VARCHAR(256) GENERATED ALWAYS AS (json ->> 'name') STORED NOT NULL,
|
|
|
|
json JSONB NOT NULL,
|
|
|
|
updatedAt BIGINT GENERATED ALWAYS AS ((json ->> 'updatedAt')::bigint) STORED NOT NULL,
|
|
|
|
updatedBy VARCHAR(256) GENERATED ALWAYS AS (json ->> 'updatedBy') STORED NOT NULL,
|
|
|
|
deleted BOOLEAN GENERATED ALWAYS AS ((json ->> 'deleted')::boolean) STORED,
|
|
|
|
UNIQUE (name)
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS test_case (
|
|
|
|
id VARCHAR(36) GENERATED ALWAYS AS (json ->> 'id') STORED NOT NULL,
|
|
|
|
fullyQualifiedName VARCHAR(512) GENERATED ALWAYS AS (json ->> 'fullyQualifiedName') STORED NOT NULL,
|
|
|
|
json JSONB NOT NULL,
|
|
|
|
updatedAt BIGINT GENERATED ALWAYS AS ((json ->> 'updatedAt')::bigint) STORED NOT NULL,
|
|
|
|
updatedBy VARCHAR(256) GENERATED ALWAYS AS (json ->> 'updatedBy') STORED NOT NULL,
|
|
|
|
deleted BOOLEAN GENERATED ALWAYS AS ((json ->> 'deleted')::boolean) STORED,
|
|
|
|
UNIQUE (fullyQualifiedName)
|
|
|
|
);
|
|
|
|
|
2022-07-28 23:45:12 +05:30
|
|
|
UPDATE webhook_entity
|
2022-07-31 21:02:49 -07:00
|
|
|
SET json = JSONB_SET(json::jsonb, '{webhookType}', '"generic"', true);
|
|
|
|
|
|
|
|
ALTER TABLE thread_entity
|
|
|
|
ADD announcementStart BIGINT GENERATED ALWAYS AS ((json#>'{announcement,startTime}')::bigint) STORED,
|
|
|
|
ADD announcementEnd BIGINT GENERATED ALWAYS AS ((json#>'{announcement,endTime}')::bigint) STORED;
|