From 2abe57497716ddc80063a06b234874438f47e223 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Mon, 22 Feb 2021 21:56:18 -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 ec93134..5299d7f 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 previous_content SET DEFAULT array[]::varchar[]; COMMIT;