···11+CREATE TABLE `notification_trigger` (
22+ `id` integer PRIMARY KEY NOT NULL,
33+ `monitor_id` integer,
44+ `notification_id` integer,
55+ `cron_timestamp` integer NOT NULL,
66+ FOREIGN KEY (`monitor_id`) REFERENCES `monitor`(`id`) ON UPDATE no action ON DELETE no action,
77+ FOREIGN KEY (`notification_id`) REFERENCES `notification`(`id`) ON UPDATE no action ON DELETE no action
88+);
99+--> statement-breakpoint
1010+CREATE UNIQUE INDEX `notification_id_monitor_id_crontimestampe` ON `notification_trigger` (`notification_id`,`monitor_id`,`cron_timestamp`);--> statement-breakpoint
1111+DROP INDEX IF EXISTS "page_slug_unique";--> statement-breakpoint
1212+DROP INDEX IF EXISTS "workspace_slug_unique";--> statement-breakpoint
1313+DROP INDEX IF EXISTS "workspace_stripe_id_unique";--> statement-breakpoint
1414+DROP INDEX IF EXISTS "workspace_id_dsn_unique";--> statement-breakpoint
1515+DROP INDEX IF EXISTS "user_tenant_id_unique";--> statement-breakpoint
1616+DROP INDEX IF EXISTS "notification_id_monitor_id_crontimestampe";--> statement-breakpoint
1717+DROP INDEX IF EXISTS "monitor_status_idx";--> statement-breakpoint
1818+DROP INDEX IF EXISTS "incident_monitor_id_started_at_unique";--> statement-breakpoint
1919+DROP INDEX IF EXISTS "application_dsn_unique";--> statement-breakpoint
2020+ALTER TABLE `status_report_update` ALTER COLUMN "status" TO "status" text NOT NULL;--> statement-breakpoint
2121+CREATE UNIQUE INDEX `page_slug_unique` ON `page` (`slug`);--> statement-breakpoint
2222+CREATE UNIQUE INDEX `workspace_slug_unique` ON `workspace` (`slug`);--> statement-breakpoint
2323+CREATE UNIQUE INDEX `workspace_stripe_id_unique` ON `workspace` (`stripe_id`);--> statement-breakpoint
2424+CREATE UNIQUE INDEX `workspace_id_dsn_unique` ON `workspace` (`id`,`dsn`);--> statement-breakpoint
2525+CREATE UNIQUE INDEX `user_tenant_id_unique` ON `user` (`tenant_id`);--> statement-breakpoint
2626+CREATE INDEX `monitor_status_idx` ON `monitor_status` (`monitor_id`,`region`);--> statement-breakpoint
2727+CREATE UNIQUE INDEX `incident_monitor_id_started_at_unique` ON `incident` (`monitor_id`,`started_at`);--> statement-breakpoint
2828+CREATE UNIQUE INDEX `application_dsn_unique` ON `application` (`dsn`);