aboutsummaryrefslogtreecommitdiff
path: root/comments/migrations
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2022-12-29 22:49:33 +0000
committerMartin Ashby <martin@ashbysoft.com>2022-12-29 22:49:33 +0000
commit30927637f2ae8af9224eb6daeca25793a0675bca (patch)
tree9d2acb62368f1757359d6d4e66352fe5e78e9225 /comments/migrations
parent19da6ec39be9e3caa5b9e2766139684fd7bbe0a0 (diff)
downloadmfashby.net-30927637f2ae8af9224eb6daeca25793a0675bca.tar.gz
mfashby.net-30927637f2ae8af9224eb6daeca25793a0675bca.tar.bz2
mfashby.net-30927637f2ae8af9224eb6daeca25793a0675bca.tar.xz
mfashby.net-30927637f2ae8af9224eb6daeca25793a0675bca.zip
More work on comments
Diffstat (limited to 'comments/migrations')
-rw-r--r--comments/migrations/1_capcha.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/comments/migrations/1_capcha.sql b/comments/migrations/1_capcha.sql
new file mode 100644
index 0000000..c80a4bd
--- /dev/null
+++ b/comments/migrations/1_capcha.sql
@@ -0,0 +1,6 @@
+create table if not exists capchas(question text not null, answer text not null, id uuid not null default gen_random_uuid());
+create unique index if not exists idx_capchas_id on capchas(id);
+insert into capchas(question, answer) values ('What is 1 + 3?', '4');
+insert into capchas(question, answer) values ('If I have 3 apples and 4 pears, how many fruit do I have?', '7');
+insert into capchas(question, answer) values ('What is 3 squared?', '9');
+insert into capchas(question, answer) values ('What is the meaning of life, the universe, and everything?', '42');