@cat-factory/node-server 0.230.0 → 0.231.1
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/container-core-deps.js +1 -1
- package/dist/container-core-deps.js.map +1 -1
- package/dist/container-executor-deps.d.ts.map +1 -1
- package/dist/container-executor-deps.js +2 -2
- package/dist/container-executor-deps.js.map +1 -1
- package/dist/container-model-deps.d.ts.map +1 -1
- package/dist/container-model-deps.js +3 -1
- package/dist/container-model-deps.js.map +1 -1
- package/dist/container.d.ts +2 -1
- package/dist/container.d.ts.map +1 -1
- package/dist/container.js.map +1 -1
- package/dist/db/tables/model-credentials.d.ts +1 -1
- package/dist/db/tables/model-credentials.js +2 -2
- package/dist/db/tables/model-credentials.js.map +1 -1
- package/dist/repositories/personalSubscription.d.ts +3 -3
- package/dist/repositories/personalSubscription.d.ts.map +1 -1
- package/dist/repositories/personalSubscription.js +8 -8
- package/dist/repositories/personalSubscription.js.map +1 -1
- package/drizzle/20260909230930_bright_beast/migration.sql +14 -0
- package/drizzle/20260909230930_bright_beast/snapshot.json +22464 -0
- package/package.json +21 -21
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
-- `subscription_activations.execution_id` becomes `scope_id`, mirroring D1 0103.
|
|
2
|
+
--
|
|
3
|
+
-- The column holds an ACTIVATION SCOPE: an opaque key naming what a system-key-only copy of a
|
|
4
|
+
-- personal credential belongs to. A run was the first kind, an environment test already writes its
|
|
5
|
+
-- own `envtest_*` id here, and a signed-in person on a run-less surface is now a third.
|
|
6
|
+
--
|
|
7
|
+
-- Existing rows are DELETED rather than rewritten. Every scope is now prefixed by its kind
|
|
8
|
+
-- (`run:` / `user:`, minted by kernel's `runActivationScope` / `userActivationScope`), so an
|
|
9
|
+
-- unprefixed key will never be looked up again, and a row does not record which kind it was: a
|
|
10
|
+
-- prefix chosen here would be a guess. An activation is a 12h cache of a credential the user can
|
|
11
|
+
-- re-unlock with their password at any time.
|
|
12
|
+
DELETE FROM "subscription_activations";--> statement-breakpoint
|
|
13
|
+
ALTER TABLE "subscription_activations" RENAME COLUMN "execution_id" TO "scope_id";--> statement-breakpoint
|
|
14
|
+
ALTER INDEX "idx_sub_activations_run" RENAME TO "idx_sub_activations_scope";
|