]> Untitled Git - lemmy.git/blobdiff - migrations/2023-06-21-153242_add_captcha/up.sql
add enable_federated_downvotes site option
[lemmy.git] / migrations / 2023-06-21-153242_add_captcha / up.sql
index 5c566bc929e6e75ada9ba9a162c10ae4b426e596..ede6f71feffe207bcd0f9544cc111e464e6ccd3e 100644 (file)
@@ -1,6 +1,7 @@
-create table captcha_answer (
-    id serial primary key,
-    uuid uuid not null unique default gen_random_uuid(),
-    answer text not null,
-    published timestamp not null default now()
+CREATE TABLE captcha_answer (
+    id serial PRIMARY KEY,
+    uuid uuid NOT NULL UNIQUE DEFAULT gen_random_uuid (),
+    answer text NOT NULL,
+    published timestamp NOT NULL DEFAULT now()
 );
+