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>
9 lines
259 B
SQL
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`);
|