From 575cb2bac87aed5101ed77160847dfc2501baa0b Mon Sep 17 00:00:00 2001 From: Ethan Ho Date: Fri, 6 Dec 2024 16:52:17 -0800 Subject: [PATCH] Update articles.sql --- server/db/schema/articles.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/db/schema/articles.sql b/server/db/schema/articles.sql index 055b238..1d0965a 100644 --- a/server/db/schema/articles.sql +++ b/server/db/schema/articles.sql @@ -1,5 +1,5 @@ CREATE TABLE IF NOT EXISTS articles ( - id SERIAL PRIMARY KEY, + id INTEGER PRIMARY KEY NOT NULL GENERATED ALWAYS AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1 ), s3_url VARCHAR(256) NOT NULL, description TEXT NOT NULL, media_url VARCHAR(256) NOT NULL