Keshav Mohta 107a3c4946
Fixes #24132: Airbyte Cloud Support (#24261)
* 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
2025-11-11 16:24:09 +05:30

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';