mirror of
https://github.com/open-metadata/OpenMetadata
synced 2026-05-24 09:39:11 +00:00
* Fix #26178: Add support for IAM auth for redshift * Missing files for the implementation * Update generated TypeScript types * adderess guitar comments * address comments * fix python tests * fix redshift playright * fix checkstyle --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
13 lines
499 B
SQL
13 lines
499 B
SQL
-- Migrate Redshift connection: move password into authType.password (basicAuth)
|
|
UPDATE dbservice_entity
|
|
SET json = JSON_INSERT(
|
|
JSON_REMOVE(json, '$.connection.config.password'),
|
|
'$.connection.config.authType',
|
|
JSON_OBJECT(
|
|
'password',
|
|
JSON_EXTRACT(json, '$.connection.config.password')
|
|
)
|
|
)
|
|
WHERE serviceType = 'Redshift'
|
|
AND JSON_EXTRACT(json, '$.connection.config.password') IS NOT NULL
|
|
AND NOT JSON_CONTAINS_PATH(json, 'one', '$.connection.config.authType');
|