mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-12 11:39:39 +00:00
13 lines
572 B
SQL
13 lines
572 B
SQL
-- Updating the value of SASL Mechanism for Kafka and Redpanda connections
|
|
UPDATE messaging_service_entity
|
|
SET json = JSONB_SET(json::jsonb, '{connection,config,saslMechanism}', '"PLAIN"')
|
|
WHERE (servicetype = 'Kafka' OR serviceType = 'Redpanda')
|
|
AND json#>'{connection,config,saslMechanism}' IS NOT NULL
|
|
AND json#>'{connection,config,saslMechanism}' NOT IN ('"GSSAPI"', '"PLAIN"', '"SCRAM-SHA-256"', '"SCRAM-SHA-512"', '"OAUTHBEARER"');
|
|
|
|
-- Remove the Subscriptions
|
|
DELETE FROM event_subscription_entity;
|
|
|
|
-- Clean old test connections
|
|
TRUNCATE automations_workflow;
|