🐛 fix: kafka producer booleans migration null values (#3984)
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
This commit is contained in:
parent
38efd97b28
commit
0608881954
|
@ -16,8 +16,11 @@ ALTER TABLE monitor
|
||||||
ADD COLUMN kafka_producer_allow_auto_topic_creation BOOLEAN default 0 NOT NULL;
|
ADD COLUMN kafka_producer_allow_auto_topic_creation BOOLEAN default 0 NOT NULL;
|
||||||
|
|
||||||
-- Set bring old values from `_old` COLUMNs to correct ones
|
-- Set bring old values from `_old` COLUMNs to correct ones
|
||||||
UPDATE monitor set kafka_producer_allow_auto_topic_creation = monitor.kafka_producer_allow_auto_topic_creation_old;
|
UPDATE monitor SET kafka_producer_allow_auto_topic_creation = monitor.kafka_producer_allow_auto_topic_creation_old
|
||||||
UPDATE monitor set kafka_producer_ssl = monitor.kafka_producer_ssl_old;
|
WHERE monitor.kafka_producer_allow_auto_topic_creation_old IS NOT NULL;
|
||||||
|
|
||||||
|
UPDATE monitor SET kafka_producer_ssl = monitor.kafka_producer_ssl_old
|
||||||
|
WHERE monitor.kafka_producer_ssl_old IS NOT NULL;
|
||||||
|
|
||||||
-- Remove old COLUMNs
|
-- Remove old COLUMNs
|
||||||
ALTER TABLE monitor
|
ALTER TABLE monitor
|
||||||
|
|
Loading…
Reference in New Issue