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>
4 lines
159 B
SQL
4 lines
159 B
SQL
DROP INDEX IF EXISTS `users_provider_subject_idx`;
|
|
--> statement-breakpoint
|
|
CREATE UNIQUE INDEX `users_provider_subject_idx` ON `users`(`provider`,`subject`);
|