aboutsummaryrefslogtreecommitdiff
path: root/zig-comments/src/migrations/0_init.sql
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2023-08-04 22:29:41 +0100
committerMartin Ashby <martin@ashbysoft.com>2023-08-11 22:48:56 +0100
commitf3302ecb76be3f42d782d73a58552775416b5052 (patch)
tree69fd40b315af876b3885769cbf4dedd83f1783b1 /zig-comments/src/migrations/0_init.sql
parent6ee53f319847e7535b19d2661fa501bcb423ef42 (diff)
downloadmfashby.net-zig-comments.tar.gz
mfashby.net-zig-comments.tar.bz2
mfashby.net-zig-comments.tar.xz
mfashby.net-zig-comments.zip
Convert comments to zigzig-comments
Diffstat (limited to 'zig-comments/src/migrations/0_init.sql')
-rw-r--r--zig-comments/src/migrations/0_init.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/zig-comments/src/migrations/0_init.sql b/zig-comments/src/migrations/0_init.sql
new file mode 100644
index 0000000..a799784
--- /dev/null
+++ b/zig-comments/src/migrations/0_init.sql
@@ -0,0 +1,2 @@
+create table if not exists comments (url text not null, author text not null, comment text not null, ts timestamptz not null default now());
+create index if not exists idx_comments_url on comments(url); \ No newline at end of file