From 4b8de0bcf0ca598804a9d462933d492232b4b314 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sun, 12 Feb 2023 14:50:42 -0500 Subject: Merge branch 'self-hosted-comments' It's been working well enough. I think it's time to get the initial version of this on `master'. --- haunt/jakob/dynamic/schema-gallery.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 haunt/jakob/dynamic/schema-gallery.sql (limited to 'haunt/jakob/dynamic/schema-gallery.sql') diff --git a/haunt/jakob/dynamic/schema-gallery.sql b/haunt/jakob/dynamic/schema-gallery.sql new file mode 100644 index 0000000..bad4100 --- /dev/null +++ b/haunt/jakob/dynamic/schema-gallery.sql @@ -0,0 +1,18 @@ +CREATE TABLE IF NOT EXISTS galleries ( + id SERIAL, + vanity char(12) NOT NULL, + title varchar(128), + description varchar(4096) NOT NULL, + datetime timestamp with time zone NOT NULL, + PRIMARY KEY (id) +); + +CREATE TABLE IF NOT EXISTS images ( + id SERIAL, + vanity char(12) NOT NULL, + title varchar(128), + filename varchar(64) NOT NULL, + thumb_filename varchar(64) NOT NULL, + datetime timestamp with time zone NOT NULL, + PRIMARY KEY (id) +); -- cgit v1.3