Files
caddy-proxy-manager/drizzle/0007_linking_tokens.sql
fuomag9 f3679f7f45 fix: add statement-breakpoint separators to multi-statement migrations
Drizzle's better-sqlite3 migrator splits on '--> statement-breakpoint'.
Without it, the entire file is passed to db.prepare() as a single
statement, which better-sqlite3 rejects with 'more than one statement'.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-26 00:54:56 +01:00

9 lines
259 B
SQL

CREATE TABLE `linking_tokens` (
`id` text PRIMARY KEY NOT NULL,
`token` text NOT NULL,
`created_at` text NOT NULL,
`expires_at` text NOT NULL
);
--> statement-breakpoint
CREATE INDEX `linking_tokens_expires_at_idx` ON `linking_tokens` (`expires_at`);