From 44854ccad07aa4dfaad27e47ba3433bb5ed57801 Mon Sep 17 00:00:00 2001 From: Arzumify Date: Tue, 15 Oct 2024 17:33:55 +0100 Subject: [PATCH] Fixed postgres db --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 092b70c..ddb74d4 100644 --- a/main.go +++ b/main.go @@ -208,7 +208,7 @@ func Main(information library.ServiceInitializationInformation) { logFunc(err.Error(), 3, information) } // Create the comments table - _, err = conn.DB.Exec("CREATE TABLE IF NOT EXISTS comments (id BLOB NOT NULL, rfcId INTEGER NOT NULL, rfcYear INTEGER NOT NULL, content TEXT NOT NULL, creator BYTEA NOT NULL, creatorName TEXT NOT NULL, created INTEGER NOT NULL)") + _, err = conn.DB.Exec("CREATE TABLE IF NOT EXISTS comments (id BYTEA NOT NULL, rfcId INTEGER NOT NULL, rfcYear INTEGER NOT NULL, content TEXT NOT NULL, creator BYTEA NOT NULL, creatorName TEXT NOT NULL, created INTEGER NOT NULL)") if err != nil { logFunc(err.Error(), 3, information) }