server/drizzle/migrations/0026_neat_stranger.sql
Jesse Wierzbinski d55668d529
fix(database): 💩 Replace uuid_generate_v7 in migrations to a dummy PostgreSQL function
Prevents a fatal error when running migrations on vanilla PostgreSQL instance without the pg_uuidv7 extension
2025-03-30 22:32:04 +02:00

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
);