mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Prevents a fatal error when running migrations on vanilla PostgreSQL instance without the pg_uuidv7 extension
7 lines
255 B
SQL
7 lines
255 B
SQL
CREATE TABLE IF NOT EXISTS "CaptchaChallenges" (
|
|
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
"challenge" jsonb NOT NULL,
|
|
"expires_at" timestamp(3) DEFAULT NOW() + INTERVAL '5 minutes',
|
|
"created_at" timestamp(3) DEFAULT now() NOT NULL
|
|
);
|