OpenMetadata/bootstrap/sql/org.postgresql.Driver/v004__create_db_connection_info.sql
Onkar Ravgan 1673b1aa30
DynamoDB Topology refactor (#5967)
DynamoDB Topology refactor (#5967)
2022-07-20 10:42:40 +02:00

10 lines
306 B
SQL

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;
UPDATE dbservice_entity
SET json = json::jsonb #- '{connection,config,database}'
where serviceType = 'DynamoDB';