@authhero/drizzle 0.22.4 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ PRAGMA foreign_keys=OFF;--> statement-breakpoint
2
+ CREATE TABLE `__new_hooks` (
3
+ `hook_id` text(255) PRIMARY KEY NOT NULL,
4
+ `tenant_id` text(191) NOT NULL,
5
+ `url` text(512),
6
+ `trigger_id` text(255) NOT NULL,
7
+ `enabled` integer NOT NULL,
8
+ `created_at` text(35) NOT NULL,
9
+ `updated_at` text(35) NOT NULL,
10
+ `synchronous` integer DEFAULT false NOT NULL,
11
+ `priority` integer,
12
+ `form_id` text,
13
+ FOREIGN KEY (`tenant_id`) REFERENCES `tenants`(`id`) ON UPDATE no action ON DELETE cascade
14
+ );
15
+ --> statement-breakpoint
16
+ INSERT INTO `__new_hooks`("hook_id", "tenant_id", "url", "trigger_id", "enabled", "created_at", "updated_at", "synchronous", "priority", "form_id") SELECT "hook_id", "tenant_id", "url", "trigger_id", "enabled", "created_at", "updated_at", "synchronous", "priority", "form_id" FROM `hooks`;--> statement-breakpoint
17
+ DROP TABLE `hooks`;--> statement-breakpoint
18
+ ALTER TABLE `__new_hooks` RENAME TO `hooks`;--> statement-breakpoint
19
+ PRAGMA foreign_keys=ON;