mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-15 18:58:32 +00:00
15 lines
550 B
MySQL
15 lines
550 B
MySQL
![]() |
-- Migration script to restructure Databricks connection configuration
|
||
|
-- Move 'token' field from connection.config.token to connection.config.authType.token
|
||
|
UPDATE dbservice_entity
|
||
|
SET
|
||
|
json = JSON_SET (
|
||
|
JSON_REMOVE (json, '$.connection.config.token'),
|
||
|
'$.connection.config.authType',
|
||
|
JSON_OBJECT (
|
||
|
'token',
|
||
|
JSON_EXTRACT (json, '$.connection.config.token')
|
||
|
)
|
||
|
)
|
||
|
WHERE
|
||
|
serviceType in ('Databricks', 'UnityCatalog')
|
||
|
AND JSON_CONTAINS_PATH(json, 'one', '$.connection.config.token');
|