@prisma-next/target-postgres 0.1.0-pr.72.1 → 0.1.0-pr.72.2
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 +6 -1
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -63,18 +63,23 @@ const family = sqlFamilyDescriptor.create({
|
|
|
63
63
|
extensions: [],
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
+
// Include the active framework components so planner/runner can resolve
|
|
67
|
+
// component-owned database dependencies (e.g., extension installs).
|
|
68
|
+
const frameworkComponents = [postgres, postgresAdapter];
|
|
69
|
+
|
|
66
70
|
// Create planner and runner from target descriptor
|
|
67
71
|
const planner = postgres.migrations.createPlanner(family);
|
|
68
72
|
const runner = postgres.migrations.createRunner(family);
|
|
69
73
|
|
|
70
74
|
// Plan and execute migrations
|
|
71
|
-
const planResult = planner.plan({ contract, schema, policy });
|
|
75
|
+
const planResult = planner.plan({ contract, schema, policy, frameworkComponents });
|
|
72
76
|
if (planResult.kind === 'success') {
|
|
73
77
|
const executeResult = await runner.execute({
|
|
74
78
|
plan: planResult.plan,
|
|
75
79
|
driver,
|
|
76
80
|
destinationContract: contract,
|
|
77
81
|
policy,
|
|
82
|
+
frameworkComponents,
|
|
78
83
|
});
|
|
79
84
|
if (!executeResult.ok) {
|
|
80
85
|
// Handle structured failure (e.g., EXECUTION_FAILED, PRECHECK_FAILED)
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/target-postgres",
|
|
3
|
-
"version": "0.1.0-pr.72.
|
|
3
|
+
"version": "0.1.0-pr.72.2",
|
|
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/family-sql": "0.1.0-pr.72.
|
|
10
|
-
"@prisma-next/cli": "0.1.0-pr.72.
|
|
11
|
-
"@prisma-next/contract": "0.1.0-pr.72.
|
|
12
|
-
"@prisma-next/sql-contract": "0.1.0-pr.72.
|
|
13
|
-
"@prisma-next/sql-errors": "0.1.0-pr.72.
|
|
14
|
-
"@prisma-next/sql-schema-ir": "0.1.0-pr.72.
|
|
15
|
-
"@prisma-next/core-control-plane": "0.1.0-pr.72.
|
|
16
|
-
"@prisma-next/core-execution-plane": "0.1.0-pr.72.
|
|
17
|
-
"@prisma-next/utils": "0.1.0-pr.72.
|
|
9
|
+
"@prisma-next/family-sql": "0.1.0-pr.72.2",
|
|
10
|
+
"@prisma-next/cli": "0.1.0-pr.72.2",
|
|
11
|
+
"@prisma-next/contract": "0.1.0-pr.72.2",
|
|
12
|
+
"@prisma-next/sql-contract": "0.1.0-pr.72.2",
|
|
13
|
+
"@prisma-next/sql-errors": "0.1.0-pr.72.2",
|
|
14
|
+
"@prisma-next/sql-schema-ir": "0.1.0-pr.72.2",
|
|
15
|
+
"@prisma-next/core-control-plane": "0.1.0-pr.72.2",
|
|
16
|
+
"@prisma-next/core-execution-plane": "0.1.0-pr.72.2",
|
|
17
|
+
"@prisma-next/utils": "0.1.0-pr.72.2"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@vitest/coverage-v8": "^4.0.0",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"tsup": "^8.3.0",
|
|
23
23
|
"typescript": "^5.9.3",
|
|
24
24
|
"vitest": "^4.0.16",
|
|
25
|
-
"@prisma-next/adapter-postgres": "0.1.0-pr.72.
|
|
26
|
-
"@prisma-next/driver-postgres": "0.1.0-pr.72.
|
|
25
|
+
"@prisma-next/adapter-postgres": "0.1.0-pr.72.2",
|
|
26
|
+
"@prisma-next/driver-postgres": "0.1.0-pr.72.2",
|
|
27
27
|
"@prisma-next/test-utils": "0.0.1"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|