From 04c32955c7032fccf64a97a24047359df297420f Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Mon, 22 Feb 2021 21:29:41 -0900 Subject: [PATCH] Update database schema to not allow null previous_content --- pkg/database/migrations/000005_remove_null_from_lists.up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/database/migrations/000005_remove_null_from_lists.up.sql b/pkg/database/migrations/000005_remove_null_from_lists.up.sql index 50cf5ad..ec93134 100644 --- a/pkg/database/migrations/000005_remove_null_from_lists.up.sql +++ b/pkg/database/migrations/000005_remove_null_from_lists.up.sql @@ -2,5 +2,5 @@ BEGIN; ALTER TABLE messages ALTER COLUMN previous_content SET NOT NULL; ALTER TABLE messages - ALTER COLUMN prevous_content SET DEFAULT array[]::varchar[] + ALTER COLUMN prevous_content SET DEFAULT array[]::varchar[]; COMMIT;