@authhero/drizzle 1.14.1 → 1.16.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.
- package/dist/drizzle-adapter.cjs +2 -2
- package/dist/drizzle-adapter.mjs +880 -813
- package/drizzle/0012_config_inheritance.sql +32 -0
- package/drizzle/0013_config_sync_hash.sql +2 -0
- package/drizzle/0014_config_sync_mode.sql +1 -0
- package/drizzle/meta/0012_snapshot.json +7209 -0
- package/drizzle/meta/0013_snapshot.json +7223 -0
- package/drizzle/meta/0014_snapshot.json +7230 -0
- package/drizzle/meta/_journal.json +21 -0
- package/drizzle-control-plane/0002_rollout_config.sql +2 -0
- package/drizzle-control-plane/meta/0002_snapshot.json +487 -0
- package/drizzle-control-plane/meta/_journal.json +7 -0
- package/package.json +3 -3
- package/src/schema/control-plane/rollouts.ts +2 -0
- package/src/schema/sqlite/actions.ts +2 -0
- package/src/schema/sqlite/branding.ts +5 -0
- package/src/schema/sqlite/configInheritance.ts +18 -0
- package/src/schema/sqlite/connections.ts +2 -0
- package/src/schema/sqlite/roles.ts +2 -0
- package/src/schema/sqlite/tenants.ts +4 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
ALTER TABLE `tenants` ADD `parent_tenant_id` text(191);--> statement-breakpoint
|
|
2
|
+
ALTER TABLE `actions` ADD `scope` text(16);--> statement-breakpoint
|
|
3
|
+
ALTER TABLE `actions` ADD `override` text(16);--> statement-breakpoint
|
|
4
|
+
ALTER TABLE `actions` ADD `enforce` integer;--> statement-breakpoint
|
|
5
|
+
ALTER TABLE `connections` ADD `scope` text(16);--> statement-breakpoint
|
|
6
|
+
ALTER TABLE `connections` ADD `override` text(16);--> statement-breakpoint
|
|
7
|
+
ALTER TABLE `connections` ADD `enforce` integer;--> statement-breakpoint
|
|
8
|
+
ALTER TABLE `resource_servers` ADD `scope` text(16);--> statement-breakpoint
|
|
9
|
+
ALTER TABLE `resource_servers` ADD `override` text(16);--> statement-breakpoint
|
|
10
|
+
ALTER TABLE `resource_servers` ADD `enforce` integer;--> statement-breakpoint
|
|
11
|
+
ALTER TABLE `branding` ADD `scope` text(16);--> statement-breakpoint
|
|
12
|
+
ALTER TABLE `branding` ADD `override` text(16);--> statement-breakpoint
|
|
13
|
+
ALTER TABLE `branding` ADD `enforce` integer;--> statement-breakpoint
|
|
14
|
+
ALTER TABLE `email_providers` ADD `scope` text(16);--> statement-breakpoint
|
|
15
|
+
ALTER TABLE `email_providers` ADD `override` text(16);--> statement-breakpoint
|
|
16
|
+
ALTER TABLE `email_providers` ADD `enforce` integer;--> statement-breakpoint
|
|
17
|
+
ALTER TABLE `hooks` ADD `scope` text(16);--> statement-breakpoint
|
|
18
|
+
ALTER TABLE `hooks` ADD `override` text(16);--> statement-breakpoint
|
|
19
|
+
ALTER TABLE `hooks` ADD `enforce` integer;--> statement-breakpoint
|
|
20
|
+
ALTER TABLE `prompt_settings` ADD `scope` text(16);--> statement-breakpoint
|
|
21
|
+
ALTER TABLE `prompt_settings` ADD `override` text(16);--> statement-breakpoint
|
|
22
|
+
ALTER TABLE `prompt_settings` ADD `enforce` integer;
|
|
23
|
+
--> statement-breakpoint
|
|
24
|
+
-- Map the existing publishing flags onto the new fields so behaviour does not
|
|
25
|
+
-- change: is_system rows and hooks flagged metadata.inheritable are shared.
|
|
26
|
+
UPDATE `connections` SET `scope` = 'shared', `override` = 'none' WHERE `is_system` = 1 AND `scope` IS NULL;
|
|
27
|
+
--> statement-breakpoint
|
|
28
|
+
UPDATE `actions` SET `scope` = 'shared', `override` = 'none' WHERE `is_system` = 1 AND `scope` IS NULL;
|
|
29
|
+
--> statement-breakpoint
|
|
30
|
+
UPDATE `resource_servers` SET `scope` = 'shared', `override` = 'none' WHERE `is_system` = 1 AND `scope` IS NULL;
|
|
31
|
+
--> statement-breakpoint
|
|
32
|
+
UPDATE `hooks` SET `scope` = 'shared', `override` = 'none' WHERE `scope` IS NULL AND CASE WHEN json_valid(`metadata`) THEN json_extract(`metadata`, '$.inheritable') END = 1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE `tenants` ADD `config_sync` text(16);
|