From 7d2933a7870bc2b823f3bbd858c262bd6621fcc4 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Thu, 7 Sep 2023 09:48:55 -0700 Subject: [PATCH] fix postgres v3 migration --- .../queries/migrations/postgresql/V3__fix_leftchannels.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/resources/queries/migrations/postgresql/V3__fix_leftchannels.sql b/common/src/main/resources/queries/migrations/postgresql/V3__fix_leftchannels.sql index 03c3721c5..e7c9542d6 100644 --- a/common/src/main/resources/queries/migrations/postgresql/V3__fix_leftchannels.sql +++ b/common/src/main/resources/queries/migrations/postgresql/V3__fix_leftchannels.sql @@ -1 +1,3 @@ -ALTER TABLE carbon_leftchannels ALTER COLUMN channel TYPE VARCHAR(256) NOT NULL; +ALTER TABLE carbon_leftchannels + ALTER COLUMN channel TYPE VARCHAR(256), + ALTER COLUMN channel SET NOT NULL;