@prisma-next/target-postgres 0.3.0-dev.45 → 0.3.0-dev.52
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/README.md +1 -1
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ This package spans multiple planes:
|
|
|
34
34
|
|
|
35
35
|
This package provides the Postgres implementation of the SQL migration planner/runner used by `prisma-next db init`:
|
|
36
36
|
|
|
37
|
-
- **Planner** (`src/core/migrations/planner.ts`): produces an additive-only `MigrationPlan` to bring the database schema in line with a destination contract. Extra unrelated schema is tolerated; non-additive mismatches (type/nullability/constraint incompatibilities) surface as structured conflicts. Storage type operations (from codec-owned hooks) are emitted before table operations when `storage.types` are present. The planner respects the contract's `foreignKeys` configuration: when `foreignKeys.constraints` is `false`, FK constraint operations are skipped; when `foreignKeys.indexes` is `false`, FK-backing indexes are omitted. See [ADR 161](../../../docs/architecture%20docs/adrs/ADR%20161%20-%20Explicit%20foreign%20key%20constraint%20and%20index%20configuration.md). The planner also emits `ON DELETE` and `ON UPDATE` referential action clauses when specified on foreign keys (see [ADR
|
|
37
|
+
- **Planner** (`src/core/migrations/planner.ts`): produces an additive-only `MigrationPlan` to bring the database schema in line with a destination contract. Extra unrelated schema is tolerated; non-additive mismatches (type/nullability/constraint incompatibilities) surface as structured conflicts. Storage type operations (from codec-owned hooks) are emitted before table operations when `storage.types` are present. The planner respects the contract's `foreignKeys` configuration: when `foreignKeys.constraints` is `false`, FK constraint operations are skipped; when `foreignKeys.indexes` is `false`, FK-backing indexes are omitted. See [ADR 161](../../../docs/architecture%20docs/adrs/ADR%20161%20-%20Explicit%20foreign%20key%20constraint%20and%20index%20configuration.md). The planner also emits `ON DELETE` and `ON UPDATE` referential action clauses when specified on foreign keys (see [ADR 166](../../../docs/architecture%20docs/adrs/ADR%20166%20-%20Referential%20actions%20for%20foreign%20keys.md)).
|
|
38
38
|
- **Runner** (`src/core/migrations/runner.ts`): executes a plan under an advisory lock, verifies the post-state schema, then writes the contract marker and appends a ledger entry in the `prisma_contract` schema.
|
|
39
39
|
|
|
40
40
|
For the CLI orchestration, see `packages/1-framework/3-tooling/cli/src/commands/db-init.ts`.
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/target-postgres",
|
|
3
|
-
"version": "0.3.0-dev.
|
|
3
|
+
"version": "0.3.0-dev.52",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Postgres target pack for Prisma Next",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"arktype": "^2.0.0",
|
|
9
|
-
"@prisma-next/cli": "0.3.0-dev.
|
|
10
|
-
"@prisma-next/contract": "0.3.0-dev.
|
|
11
|
-
"@prisma-next/core-control-plane": "0.3.0-dev.
|
|
12
|
-
"@prisma-next/core-execution-plane": "0.3.0-dev.
|
|
13
|
-
"@prisma-next/sql
|
|
14
|
-
"@prisma-next/sql-
|
|
15
|
-
"@prisma-next/sql-
|
|
16
|
-
"@prisma-next/sql-
|
|
17
|
-
"@prisma-next/sql-schema-ir": "0.3.0-dev.
|
|
18
|
-
"@prisma-next/utils": "0.3.0-dev.
|
|
19
|
-
"@prisma-next/
|
|
9
|
+
"@prisma-next/cli": "0.3.0-dev.52",
|
|
10
|
+
"@prisma-next/contract": "0.3.0-dev.52",
|
|
11
|
+
"@prisma-next/core-control-plane": "0.3.0-dev.52",
|
|
12
|
+
"@prisma-next/core-execution-plane": "0.3.0-dev.52",
|
|
13
|
+
"@prisma-next/family-sql": "0.3.0-dev.52",
|
|
14
|
+
"@prisma-next/sql-contract": "0.3.0-dev.52",
|
|
15
|
+
"@prisma-next/sql-errors": "0.3.0-dev.52",
|
|
16
|
+
"@prisma-next/sql-relational-core": "0.3.0-dev.52",
|
|
17
|
+
"@prisma-next/sql-schema-ir": "0.3.0-dev.52",
|
|
18
|
+
"@prisma-next/utils": "0.3.0-dev.52",
|
|
19
|
+
"@prisma-next/sql-runtime": "0.3.0-dev.52"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"tsdown": "0.18.4",
|
|
23
23
|
"typescript": "5.9.3",
|
|
24
24
|
"vitest": "4.0.17",
|
|
25
|
-
"@prisma-next/adapter-postgres": "0.3.0-dev.
|
|
26
|
-
"@prisma-next/driver-postgres": "0.3.0-dev.
|
|
25
|
+
"@prisma-next/adapter-postgres": "0.3.0-dev.52",
|
|
26
|
+
"@prisma-next/driver-postgres": "0.3.0-dev.52",
|
|
27
27
|
"@prisma-next/test-utils": "0.0.1",
|
|
28
|
-
"@prisma-next/
|
|
29
|
-
"@prisma-next/
|
|
28
|
+
"@prisma-next/tsdown": "0.0.0",
|
|
29
|
+
"@prisma-next/tsconfig": "0.0.0"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"dist",
|