@authhero/drizzle 0.11.1 → 0.13.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,25 @@
|
|
|
1
|
+
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
|
2
|
+
CREATE TABLE `__new_connections` (
|
|
3
|
+
`id` text(255) NOT NULL,
|
|
4
|
+
`tenant_id` text(191) NOT NULL,
|
|
5
|
+
`name` text(255) NOT NULL,
|
|
6
|
+
`response_type` text(255),
|
|
7
|
+
`response_mode` text(255),
|
|
8
|
+
`strategy` text(64),
|
|
9
|
+
`options` text(8192) DEFAULT '{}' NOT NULL,
|
|
10
|
+
`created_at` text(35) NOT NULL,
|
|
11
|
+
`updated_at` text(35) NOT NULL,
|
|
12
|
+
`display_name` text(255),
|
|
13
|
+
`is_domain_connection` integer,
|
|
14
|
+
`show_as_button` integer,
|
|
15
|
+
`is_system` integer DEFAULT 0 NOT NULL,
|
|
16
|
+
`metadata` text(4096),
|
|
17
|
+
PRIMARY KEY(`tenant_id`, `id`),
|
|
18
|
+
FOREIGN KEY (`tenant_id`) REFERENCES `tenants`(`id`) ON UPDATE no action ON DELETE cascade
|
|
19
|
+
);
|
|
20
|
+
--> statement-breakpoint
|
|
21
|
+
INSERT INTO `__new_connections`("id", "tenant_id", "name", "response_type", "response_mode", "strategy", "options", "created_at", "updated_at", "display_name", "is_domain_connection", "show_as_button", "is_system", "metadata") SELECT "id", "tenant_id", "name", "response_type", "response_mode", "strategy", "options", "created_at", "updated_at", "display_name", "is_domain_connection", "show_as_button", "is_system", "metadata" FROM `connections`;--> statement-breakpoint
|
|
22
|
+
DROP TABLE `connections`;--> statement-breakpoint
|
|
23
|
+
ALTER TABLE `__new_connections` RENAME TO `connections`;--> statement-breakpoint
|
|
24
|
+
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
|
25
|
+
CREATE INDEX `connections_tenant_id_index` ON `connections` (`tenant_id`);
|