diff options
| author | Jakob L. Kreuze | 2023-02-12 14:50:42 -0500 |
|---|---|---|
| committer | Jakob L. Kreuze | 2023-02-12 14:50:42 -0500 |
| commit | 4b8de0bcf0ca598804a9d462933d492232b4b314 (patch) | |
| tree | c0dc84333273faa56915f90b27865b2374679de4 /haunt/jakob/dynamic/schema-comments.sql | |
| parent | 8e2abe9549360f37f6703bd995b8278e4fb6b291 (diff) | |
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'.
Diffstat (limited to 'haunt/jakob/dynamic/schema-comments.sql')
| -rw-r--r-- | haunt/jakob/dynamic/schema-comments.sql | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/haunt/jakob/dynamic/schema-comments.sql b/haunt/jakob/dynamic/schema-comments.sql new file mode 100644 index 0000000..1f2edc7 --- /dev/null +++ b/haunt/jakob/dynamic/schema-comments.sql @@ -0,0 +1,17 @@ +CREATE TABLE comments( + id SERIAL PRIMARY KEY, + approved TIMESTAMP, + submitted TIMESTAMP NOT NULL, + slug VARCHAR(100) NOT NULL, + name VARCHAR(50) NOT NULL, + subject VARCHAR(100), + email VARCHAR(100), + url VARCHAR(100), + comment VARCHAR(1024) NOT NULL, + reactions VARCHAR(1024), + reply_to INT +); + +-- Use `now' for `submitted'. + +-- INSERT INTO comments (submitted, slug, name, comment) VALUES (now(), 'test', 'Jakob', 'Hello, world!'); |