Files
caddy-proxy-manager/drizzle/0008_unique_provider_subject.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

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