@prisma-next/target-postgres 0.16.0-dev.20 → 0.16.0-dev.22
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/dist/{control-policy-vqI4KbAN.mjs → control-policy-BrcqeM82.mjs} +3 -3
- package/dist/{control-policy-vqI4KbAN.mjs.map → control-policy-BrcqeM82.mjs.map} +1 -1
- package/dist/control.mjs +4 -4
- package/dist/control.mjs.map +1 -1
- package/dist/{diff-database-schema-iiZgpBJ4.mjs → diff-database-schema-CK0FM2Z-.mjs} +2 -2
- package/dist/{diff-database-schema-iiZgpBJ4.mjs.map → diff-database-schema-CK0FM2Z-.mjs.map} +1 -1
- package/dist/diff-database-schema.mjs +1 -1
- package/dist/issue-planner.mjs +1 -1
- package/dist/migration.mjs +2 -2
- package/dist/{op-factory-call-DMb7FTR6.mjs → op-factory-call-PBYfcv8h.mjs} +2 -2
- package/dist/{op-factory-call-DMb7FTR6.mjs.map → op-factory-call-PBYfcv8h.mjs.map} +1 -1
- package/dist/op-factory-call.mjs +1 -1
- package/dist/{planner-eM-kNm0O.mjs → planner-CiXCo6BT.mjs} +5 -5
- package/dist/{planner-eM-kNm0O.mjs.map → planner-CiXCo6BT.mjs.map} +1 -1
- package/dist/{planner-ddl-builders-CI1CpBfG.mjs → planner-ddl-builders-AIpFmG1i.mjs} +2 -2
- package/dist/{planner-ddl-builders-CI1CpBfG.mjs.map → planner-ddl-builders-AIpFmG1i.mjs.map} +1 -1
- package/dist/planner-ddl-builders.mjs +1 -1
- package/dist/{planner-produced-postgres-migration-Db57IpMZ.mjs → planner-produced-postgres-migration-PIgjJYrY.mjs} +2 -2
- package/dist/{planner-produced-postgres-migration-Db57IpMZ.mjs.map → planner-produced-postgres-migration-PIgjJYrY.mjs.map} +1 -1
- package/dist/planner-produced-postgres-migration.mjs +1 -1
- package/dist/planner.mjs +2 -2
- package/dist/{postgres-migration-CB767OIG.mjs → postgres-migration-BkIplcRz.mjs} +2 -2
- package/dist/{postgres-migration-CB767OIG.mjs.map → postgres-migration-BkIplcRz.mjs.map} +1 -1
- package/package.json +20 -20
- package/src/core/migrations/planner-ddl-builders.ts +1 -1
- package/src/core/psl-infer/infer-psl-contract.ts +1 -1
package/dist/control.mjs
CHANGED
|
@@ -2,10 +2,10 @@ import { n as postgresResolveDefault } from "./default-normalizer-B9ZUiyUE.mjs";
|
|
|
2
2
|
import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-CiYV9DzH.mjs";
|
|
3
3
|
import { a as postgresDiffSubjectGranularity, i as postgresDiffSubjectEntityKind } from "./postgres-table-schema-node-D6LvInCe.mjs";
|
|
4
4
|
import { i as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-bg32e7I-.mjs";
|
|
5
|
-
import { n as diffPostgresSchema, r as contractToPostgresDatabaseSchemaNode } from "./diff-database-schema-
|
|
6
|
-
import { r as renderDefaultLiteral } from "./planner-ddl-builders-
|
|
5
|
+
import { n as diffPostgresSchema, r as contractToPostgresDatabaseSchemaNode } from "./diff-database-schema-CK0FM2Z-.mjs";
|
|
6
|
+
import { r as renderDefaultLiteral } from "./planner-ddl-builders-AIpFmG1i.mjs";
|
|
7
7
|
import { n as PostgresContractSerializer } from "./postgres-contract-view-DebHMqGR.mjs";
|
|
8
|
-
import { t as createPostgresMigrationPlanner } from "./planner-
|
|
8
|
+
import { t as createPostgresMigrationPlanner } from "./planner-CiXCo6BT.mjs";
|
|
9
9
|
import { UNBOUND_NAMESPACE_ID, coordinateKey, elementCoordinates } from "@prisma-next/framework-components/ir";
|
|
10
10
|
import { blindCast } from "@prisma-next/utils/casts";
|
|
11
11
|
import { buildNativeTypeExpander, runnerFailure, runnerSuccess } from "@prisma-next/family-sql/control";
|
|
@@ -978,7 +978,7 @@ function buildDanglingForeignKeyWarning(danglingForeignKeys, fieldNamesByTable,
|
|
|
978
978
|
const fieldNames = fk.columns.map((columnName) => resolveColumnFieldName(fieldNamesByTable, tableName, columnName));
|
|
979
979
|
const target = fk.referencedSchema !== void 0 ? `${fk.referencedSchema}.${fk.referencedTable}` : fk.referencedTable;
|
|
980
980
|
return `"${fieldNames.join(", ")}" -> "${target}"`;
|
|
981
|
-
}).join(", ")} exists in the database, but its target schema is outside the introspected scope, so no relation field was generated. If the target schema is described by an extension pack, add it to
|
|
981
|
+
}).join(", ")} exists in the database, but its target schema is outside the introspected scope, so no relation field was generated. If the target schema is described by an extension pack, add it to extensions and re-run infer.`;
|
|
982
982
|
}
|
|
983
983
|
function buildScalarField(column, table, typeMap, enumNameMap, fieldNameMap, namedTypes, defaultMapping, rawDefaultParser, pkColumns, isSinglePk, singlePkConstraintName, uniqueColumns) {
|
|
984
984
|
const resolvedField = fieldNameMap?.get(column.name);
|