OpenMetadata/bootstrap/sql/migrations/native/1.9.10/postgres/postDataMigrationSQLScript.sql
2025-09-19 13:24:18 +05:30

11 lines
397 B
SQL

-- Migration script to restructure Databricks connection configuration
-- Move 'token' field from connection.config.token to connection.config.authType.token
UPDATE dbservice_entity
SET json = jsonb_set(
json #- '{connection,config,token}',
'{connection,config,authType}',
jsonb_build_object('token', json #> '{connection,config,token}'),
true
)
WHERE serviceType = 'Databricks';