OpenMetadata/bootstrap/sql/com.mysql.cj.jdbc.Driver/v010__create_db_connection_info.sql
Mayur Singal ef7b02529d
Remove sqlalchemy-ibmi from db2 dependency (#11553)
* Remove sqlalchemy-ibmi from db2 dependency

* remove from json schema

* add migration

* update what's new
2023-05-11 15:03:26 +02:00

18 lines
769 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');
-- Remove the Subscriptions
DELETE FROM event_subscription_entity;
-- Clean old test connections
TRUNCATE automations_workflow;
-- Remove the ibmi scheme from Db2 replace it with db2+ibm_db
UPDATE dbservice_entity
SET json = JSON_SET(json, '$.connection.config.scheme', 'db2+ibm_db')
WHERE serviceType = 'Db2';