OpenMetadata/bootstrap/sql/migrations/native/1.11.12/postgres/schemaChanges.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
439 B
MySQL
Raw Permalink Normal View History

-- Migrate Redshift connection: move password into authType.password (basicAuth)
UPDATE dbservice_entity
SET json = jsonb_set(
json #- '{connection,config,password}',
'{connection,config,authType}',
jsonb_build_object('password', json #> '{connection,config,password}')
)
WHERE serviceType = 'Redshift'
AND json #> '{connection,config,password}' IS NOT NULL
AND NOT jsonb_exists(json #> '{connection,config}', 'authType');