From 4f5bfa85490a49d4e65d1f0dcb0da4b88e99da0a Mon Sep 17 00:00:00 2001 From: Siddhant <86899184+Siddhanttimeline@users.noreply.github.com> Date: Thu, 31 Oct 2024 14:10:19 +0530 Subject: [PATCH] fix migration, source column NOT NULL constraint on consumer_dlq (#18485) --- bootstrap/sql/migrations/native/1.6.0/mysql/schemaChanges.sql | 2 +- .../sql/migrations/native/1.6.0/postgres/schemaChanges.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/sql/migrations/native/1.6.0/mysql/schemaChanges.sql b/bootstrap/sql/migrations/native/1.6.0/mysql/schemaChanges.sql index d5f08a37e94..7f90aff02ae 100644 --- a/bootstrap/sql/migrations/native/1.6.0/mysql/schemaChanges.sql +++ b/bootstrap/sql/migrations/native/1.6.0/mysql/schemaChanges.sql @@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS apps_data_store ( ); -- Add the source column to the consumers_dlq table -ALTER TABLE consumers_dlq ADD COLUMN source VARCHAR(255) NOT NULL; +ALTER TABLE consumers_dlq ADD COLUMN source VARCHAR(255); -- Create an index on the source column in the consumers_dlq table CREATE INDEX idx_consumers_dlq_source ON consumers_dlq (source); \ No newline at end of file diff --git a/bootstrap/sql/migrations/native/1.6.0/postgres/schemaChanges.sql b/bootstrap/sql/migrations/native/1.6.0/postgres/schemaChanges.sql index d5f08a37e94..7f90aff02ae 100644 --- a/bootstrap/sql/migrations/native/1.6.0/postgres/schemaChanges.sql +++ b/bootstrap/sql/migrations/native/1.6.0/postgres/schemaChanges.sql @@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS apps_data_store ( ); -- Add the source column to the consumers_dlq table -ALTER TABLE consumers_dlq ADD COLUMN source VARCHAR(255) NOT NULL; +ALTER TABLE consumers_dlq ADD COLUMN source VARCHAR(255); -- Create an index on the source column in the consumers_dlq table CREATE INDEX idx_consumers_dlq_source ON consumers_dlq (source); \ No newline at end of file