mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-24 17:59:52 +00:00

* Fix#11216: Use ENUM for SASL Mechanism for Kafka and Redpanda connections * Minor change * Address PR comments * Fix postgres migration
6 lines
453 B
SQL
6 lines
453 B
SQL
-- Updating the value of SASL Mechanism for Kafka and Redpanda connections
|
|
UPDATE messaging_service_entity
|
|
SET json = JSON_REPLACE(json, '$.connection.config.saslMechanism', 'PLAIN')
|
|
WHERE (serviceType = 'Kafka' OR serviceType = 'Redpanda')
|
|
AND JSON_EXTRACT(json, '$.connection.config.saslMechanism') IS NOT NULL
|
|
AND JSON_EXTRACT(json, '$.connection.config.saslMechanism') NOT IN ('GSSAPI', 'PLAIN', 'SCRAM-SHA-256', 'SCRAM-SHA-512', 'OAUTHBEARER'); |