From 1f70318d26780f85443767d555d9acfaf67b4bc2 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Mon, 22 Feb 2021 21:24:55 -0900 Subject: [PATCH] Update database schema to not allow null previous_content --- pkg/database/migrations/000005_remove_null_from_lists.up.sql | 1 - 1 file changed, 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 a1b8444..50cf5ad 100644 --- a/pkg/database/migrations/000005_remove_null_from_lists.up.sql +++ b/pkg/database/migrations/000005_remove_null_from_lists.up.sql @@ -1,5 +1,4 @@ BEGIN; - UPDATE messages SET previous_content = array[]::varchar[]; ALTER TABLE messages ALTER COLUMN previous_content SET NOT NULL; ALTER TABLE messages