aboutsummaryrefslogtreecommitdiff
path: root/comments/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'comments/migrations')
-rw-r--r--comments/migrations/0_init.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/comments/migrations/0_init.sql b/comments/migrations/0_init.sql
new file mode 100644
index 0000000..4280a12
--- /dev/null
+++ b/comments/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);