mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-23 22:22:08 +00:00
* feat: airbyte cloud support - added apis, refactor ingestion code * fix: added tite in oneOf json & logLink / * test: airbyte cloud tests * test: airbyte cloud test json * fix: airbyte test checkstyle * fix: api expires_in instead of 3 minutes and typehinting
23 lines
679 B
SQL
23 lines
679 B
SQL
-- Migrate Airbyte connections from flat username/password to auth object structure
|
|
UPDATE pipeline_service_entity
|
|
SET
|
|
json = JSON_SET (
|
|
JSON_REMOVE (
|
|
json,
|
|
'$.connection.config.username',
|
|
'$.connection.config.password'
|
|
),
|
|
'$.connection.config.auth',
|
|
JSON_OBJECT (
|
|
'username',
|
|
JSON_UNQUOTE (
|
|
JSON_EXTRACT (json, '$.connection.config.username')
|
|
),
|
|
'password',
|
|
JSON_UNQUOTE (
|
|
JSON_EXTRACT (json, '$.connection.config.password')
|
|
)
|
|
)
|
|
)
|
|
WHERE
|
|
JSON_EXTRACT (json, '$.serviceType') = 'Airbyte'; |