From 969869e4ab0a60e90d393ca273264dd4ab65e6bc Mon Sep 17 00:00:00 2001 From: Essem Date: Tue, 1 Mar 2022 09:49:36 -0600 Subject: [PATCH] probably should not be doing this --- utils/database/postgresql.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/database/postgresql.js b/utils/database/postgresql.js index a1301ef..33a84d4 100644 --- a/utils/database/postgresql.js +++ b/utils/database/postgresql.js @@ -9,7 +9,7 @@ const connection = new Postgres.Pool({ const psqlUpdates = [ "", // reserved - "CREATE TABLE settings ( id smallint PRIMARY KEY, version integer NOT NULL, CHECK(id = 1) );\nALTER TABLE guilds ADD COLUMN accessed timestamp;", + "CREATE TABLE IF NOT EXISTS settings ( id smallint PRIMARY KEY, version integer NOT NULL, CHECK(id = 1) );\nALTER TABLE guilds ADD COLUMN accessed timestamp;", "ALTER TABLE guilds DROP COLUMN accessed" ];