@prisma/orm-target-postgres 8.0.0-rc.22-dev.13 → 8.0.0-rc.22-dev.15

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.
Files changed (150) hide show
  1. package/dist/{adapter-BTT7mZNb-DgNnM6Fx.mjs → adapter-BgEU4rZ4-CnjkLewL.mjs} +3 -3
  2. package/dist/{adapter-BTT7mZNb-DgNnM6Fx.mjs.map → adapter-BgEU4rZ4-CnjkLewL.mjs.map} +1 -1
  3. package/dist/{adapter-Cqm8mgie.d.mts → adapter-D6S0To9M.d.mts} +2 -2
  4. package/dist/{adapter-Cqm8mgie.d.mts.map → adapter-D6S0To9M.d.mts.map} +1 -1
  5. package/dist/adapter.d.mts +6 -6
  6. package/dist/adapter.mjs +2 -2
  7. package/dist/adapter__adapter.d.mts +1 -1
  8. package/dist/adapter__adapter.mjs +2 -2
  9. package/dist/adapter__control.d.mts +1 -1
  10. package/dist/adapter__control.mjs +2 -2
  11. package/dist/adapter__control.mjs.map +1 -1
  12. package/dist/adapter__runtime.d.mts +1 -1
  13. package/dist/adapter__runtime.mjs +2 -2
  14. package/dist/adapter__runtime.mjs.map +1 -1
  15. package/dist/adapter__sql-renderer.d.mts +1 -1
  16. package/dist/adapter__types.d.mts +2 -2
  17. package/dist/{authoring-BPha5ZXb-DDzFeAur.mjs → authoring-BD4uEpBM-DIJiGq4e.mjs} +6 -4
  18. package/dist/authoring-BD4uEpBM-DIJiGq4e.mjs.map +1 -0
  19. package/dist/{contract-contributions-OLP0SDpr-eaZpGsZF.mjs → contract-contributions-DpTbtESH-CxVtT7cT.mjs} +20 -8
  20. package/dist/contract-contributions-DpTbtESH-CxVtT7cT.mjs.map +1 -0
  21. package/dist/{control-2DHRXqEz.d.mts → control-C8M0RWE6.d.mts} +6 -4
  22. package/dist/{control-2DHRXqEz.d.mts.map → control-C8M0RWE6.d.mts.map} +1 -1
  23. package/dist/{control-B3mLvrSy.d.mts → control-Ci6kSDEg.d.mts} +2 -2
  24. package/dist/{control-B3mLvrSy.d.mts.map → control-Ci6kSDEg.d.mts.map} +1 -1
  25. package/dist/{control-policy-K52VpMX0-CateWffI.mjs → control-policy-BUrgZRnC-BI-Yv8NV.mjs} +18 -6
  26. package/dist/control-policy-BUrgZRnC-BI-Yv8NV.mjs.map +1 -0
  27. package/dist/{data-transform-nGy9rz87-CE3DGlgn.d.mts → data-transform-2o0tpMs8-DADYIvEZ.d.mts} +3 -3
  28. package/dist/{data-transform-nGy9rz87-CE3DGlgn.d.mts.map → data-transform-2o0tpMs8-DADYIvEZ.d.mts.map} +1 -1
  29. package/dist/data-transform-DX9I716A.d.mts +1 -0
  30. package/dist/{descriptor-meta-iTcMZFBI-CPsGItUl.mjs → descriptor-meta-Bj9sQhJn-CMP3p6iz.mjs} +3 -3
  31. package/dist/{descriptor-meta-iTcMZFBI-CPsGItUl.mjs.map → descriptor-meta-Bj9sQhJn-CMP3p6iz.mjs.map} +1 -1
  32. package/dist/{descriptor-meta-isjjnUyM-B-Cvh2Xe.mjs → descriptor-meta-DWKp5Q1s-DplRJE9N.mjs} +3 -3
  33. package/dist/{descriptor-meta-isjjnUyM-B-Cvh2Xe.mjs.map → descriptor-meta-DWKp5Q1s-DplRJE9N.mjs.map} +1 -1
  34. package/dist/{diff-database-schema-D_vOsC7_-CtLt0OwZ.mjs → diff-database-schema-DPsDQkk4-4hkHTHE_.mjs} +10 -7
  35. package/dist/diff-database-schema-DPsDQkk4-4hkHTHE_.mjs.map +1 -0
  36. package/dist/{diff-database-schema-COp7SqEI.d.mts → diff-database-schema-rhLkiByE.d.mts} +2 -2
  37. package/dist/{diff-database-schema-COp7SqEI.d.mts.map → diff-database-schema-rhLkiByE.d.mts.map} +1 -1
  38. package/dist/{indexes-BYf6nXVv-BXwLw7fO.d.mts → indexes-ooG0J-V8-CTm1QvmZ.d.mts} +3 -3
  39. package/dist/{indexes-BYf6nXVv-BXwLw7fO.d.mts.map → indexes-ooG0J-V8-CTm1QvmZ.d.mts.map} +1 -1
  40. package/dist/{infer-psl-contract-GekjNl5K-C4ELCIth.mjs → infer-psl-contract-DR0Uie7w-CkaPSdPc.mjs} +9 -7
  41. package/dist/infer-psl-contract-DR0Uie7w-CkaPSdPc.mjs.map +1 -0
  42. package/dist/{issue-planner-CbixMGS1.d.mts → issue-planner-BlN8mK4E.d.mts} +4 -4
  43. package/dist/{issue-planner-CbixMGS1.d.mts.map → issue-planner-BlN8mK4E.d.mts.map} +1 -1
  44. package/dist/migration-Be_iuIpn.mjs.map +1 -1
  45. package/dist/{migration-XqRvlRWn.d.mts → migration-CCE5d6Hu.d.mts} +6 -6
  46. package/dist/{migration-XqRvlRWn.d.mts.map → migration-CCE5d6Hu.d.mts.map} +1 -1
  47. package/dist/{op-factory-call-DQW9c0ec-C3qv_STE.mjs → op-factory-call-Bgxtheqh-CsY_eFlX.mjs} +20 -10
  48. package/dist/op-factory-call-Bgxtheqh-CsY_eFlX.mjs.map +1 -0
  49. package/dist/{op-factory-call-fPC4Yzy6-B6JHyh7J.d.mts → op-factory-call-CG80t74g-D9tjd13N.d.mts} +9 -9
  50. package/dist/{op-factory-call-fPC4Yzy6-B6JHyh7J.d.mts.map → op-factory-call-CG80t74g-D9tjd13N.d.mts.map} +1 -1
  51. package/dist/op-factory-call-DRapuFEI.d.mts +1 -0
  52. package/dist/{pack-DDHu-CxO.d.mts → pack-BjD3oNln.d.mts} +2 -2
  53. package/dist/{pack-DDHu-CxO.d.mts.map → pack-BjD3oNln.d.mts.map} +1 -1
  54. package/dist/{planner-Cw5KV0_B.d.mts → planner-CyyWVHw4.d.mts} +3 -3
  55. package/dist/{planner-Cw5KV0_B.d.mts.map → planner-CyyWVHw4.d.mts.map} +1 -1
  56. package/dist/{planner-produced-postgres-migration-Dv5BSpUH-0NOLwcM4.mjs → planner-produced-postgres-migration-BYDwCSQf-Bjxf5uvj.mjs} +4 -4
  57. package/dist/{planner-produced-postgres-migration-Dv5BSpUH-0NOLwcM4.mjs.map → planner-produced-postgres-migration-BYDwCSQf-Bjxf5uvj.mjs.map} +1 -1
  58. package/dist/{planner-produced-postgres-migration-DgUtdqVh-DEhVIDmO.d.mts → planner-produced-postgres-migration-CDkRlHah-Cknq9LDt.d.mts} +4 -4
  59. package/dist/planner-produced-postgres-migration-CDkRlHah-Cknq9LDt.d.mts.map +1 -0
  60. package/dist/planner-produced-postgres-migration-Davk_RXL.d.mts +1 -0
  61. package/dist/planner-target-details-boDXR2s7-CExrk6rf.d.mts +21 -0
  62. package/dist/planner-target-details-boDXR2s7-CExrk6rf.d.mts.map +1 -0
  63. package/dist/{planner-CKWtXyFH-BzpDX4M9.mjs → planner-xiEt2PZE-CRK1isjH.mjs} +41 -11
  64. package/dist/planner-xiEt2PZE-CRK1isjH.mjs.map +1 -0
  65. package/dist/{postgres-contract-view-BAuuUjGY-1XcthN9K.mjs → postgres-contract-view-yDfay91x-BBinYMBq.mjs} +3 -3
  66. package/dist/{postgres-contract-view-BAuuUjGY-1XcthN9K.mjs.map → postgres-contract-view-yDfay91x-BBinYMBq.mjs.map} +1 -1
  67. package/dist/{postgres-database-schema-node-BjmJ6_Cs-LyZ0n9oj.d.mts → postgres-database-schema-node-CqEX2NPO-Be-Vk1Iw.d.mts} +19 -6
  68. package/dist/postgres-database-schema-node-CqEX2NPO-Be-Vk1Iw.d.mts.map +1 -0
  69. package/dist/{postgres-migration-MVAsm-Co-CcN0UJd7.d.mts → postgres-migration-DUgkNwUR-B3Hr27gY.d.mts} +9 -14
  70. package/dist/postgres-migration-DUgkNwUR-B3Hr27gY.d.mts.map +1 -0
  71. package/dist/{postgres-migration-uFrgXH6E-DCGpBoJ_.mjs → postgres-migration-DXKKrCKw-CDLugMuf.mjs} +11 -16
  72. package/dist/postgres-migration-DXKKrCKw-CDLugMuf.mjs.map +1 -0
  73. package/dist/{postgres-role-schema-node-DuljIQWp-D6Q5JyEs.mjs → postgres-role-schema-node-yFPLQ6U0-ZCPXs-lG.mjs} +3 -3
  74. package/dist/{postgres-role-schema-node-DuljIQWp-D6Q5JyEs.mjs.map → postgres-role-schema-node-yFPLQ6U0-ZCPXs-lG.mjs.map} +1 -1
  75. package/dist/{postgres-table-schema-node-nY6II-Uv-Bj-lgmSi.mjs → postgres-table-schema-node-OQRI_GIM-DhOVxH8-.mjs} +37 -8
  76. package/dist/postgres-table-schema-node-OQRI_GIM-DhOVxH8-.mjs.map +1 -0
  77. package/dist/{prisma7-binding-D1A_OJe2.mjs → prisma7-binding-BA8iSLxQ.mjs} +4 -4
  78. package/dist/{prisma7-binding-D1A_OJe2.mjs.map → prisma7-binding-BA8iSLxQ.mjs.map} +1 -1
  79. package/dist/{prisma7-binding-ZpDLZt_D.d.mts → prisma7-binding-VYAlkSRR.d.mts} +2 -2
  80. package/dist/{prisma7-binding-ZpDLZt_D.d.mts.map → prisma7-binding-VYAlkSRR.d.mts.map} +1 -1
  81. package/dist/{render-ops-Bl84i7ut.d.mts → render-ops-CEwI8Iyf.d.mts} +2 -2
  82. package/dist/{render-ops-Bl84i7ut.d.mts.map → render-ops-CEwI8Iyf.d.mts.map} +1 -1
  83. package/dist/{render-ops-BKDfKgOJ-DmoHztdY.mjs → render-ops-CXUeDteo-qwmXCohY.mjs} +3 -3
  84. package/dist/{render-ops-BKDfKgOJ-DmoHztdY.mjs.map → render-ops-CXUeDteo-qwmXCohY.mjs.map} +1 -1
  85. package/dist/{resolve-ddl-schema-BZzteXH1-C57Iavtu.mjs → resolve-ddl-schema-DwoTc0nu-CvyB2Tfu.mjs} +3 -8
  86. package/dist/resolve-ddl-schema-DwoTc0nu-CvyB2Tfu.mjs.map +1 -0
  87. package/dist/{runtime-K2strEv6.d.mts → runtime-SZ0CXU1B.d.mts} +2 -2
  88. package/dist/{runtime-K2strEv6.d.mts.map → runtime-SZ0CXU1B.d.mts.map} +1 -1
  89. package/dist/schema-ir-annotations-u590Zxbh.d.mts +10 -0
  90. package/dist/schema-ir-annotations-u590Zxbh.d.mts.map +1 -0
  91. package/dist/{sql-renderer-PT6pQ66O.d.mts → sql-renderer-DAkljp6a.d.mts} +2 -2
  92. package/dist/{sql-renderer-PT6pQ66O.d.mts.map → sql-renderer-DAkljp6a.d.mts.map} +1 -1
  93. package/dist/target.d.mts +19 -19
  94. package/dist/target.mjs +13 -13
  95. package/dist/target__control.d.mts +1 -1
  96. package/dist/target__control.mjs +11 -11
  97. package/dist/target__control.mjs.map +1 -1
  98. package/dist/target__data-transform.d.mts +2 -2
  99. package/dist/target__diff-database-schema.d.mts +1 -1
  100. package/dist/target__diff-database-schema.mjs +1 -1
  101. package/dist/target__issue-planner.d.mts +1 -1
  102. package/dist/target__issue-planner.mjs +1 -1
  103. package/dist/target__migration.d.mts +3 -3
  104. package/dist/target__migration.mjs +2 -2
  105. package/dist/target__op-factory-call.d.mts +2 -2
  106. package/dist/target__op-factory-call.mjs +1 -1
  107. package/dist/target__pack.d.mts +1 -1
  108. package/dist/target__pack.mjs +1 -1
  109. package/dist/target__planner-produced-postgres-migration.d.mts +2 -2
  110. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  111. package/dist/target__planner-target-details.d.mts +1 -1
  112. package/dist/target__planner.d.mts +1 -1
  113. package/dist/target__planner.mjs +2 -2
  114. package/dist/target__prisma7-binding.d.mts +1 -1
  115. package/dist/target__prisma7-binding.mjs +1 -1
  116. package/dist/target__render-ops.d.mts +1 -1
  117. package/dist/target__render-ops.mjs +1 -1
  118. package/dist/target__runtime.mjs +1 -1
  119. package/dist/target__runtime.mjs.map +1 -1
  120. package/dist/target__schema-ir-annotations.d.mts +1 -1
  121. package/dist/target__schema-ir-annotations.mjs +1 -1
  122. package/dist/target__types.d.mts +2 -2
  123. package/dist/target__types.mjs +2 -2
  124. package/dist/{types-D6p1198n.d.mts → types-BbuQ92k_.d.mts} +2 -2
  125. package/dist/{types-D6p1198n.d.mts.map → types-BbuQ92k_.d.mts.map} +1 -1
  126. package/dist/types-D6WI1IFf.d.mts +2 -0
  127. package/dist/{types-D6lgKhE5-DVHMZPbP.d.mts → types-D6lgKhE5-DEwv-pSi.d.mts} +2 -2
  128. package/dist/{types-D6lgKhE5-DVHMZPbP.d.mts.map → types-D6lgKhE5-DEwv-pSi.d.mts.map} +1 -1
  129. package/package.json +10 -10
  130. package/dist/authoring-BPha5ZXb-DDzFeAur.mjs.map +0 -1
  131. package/dist/contract-contributions-OLP0SDpr-eaZpGsZF.mjs.map +0 -1
  132. package/dist/control-policy-K52VpMX0-CateWffI.mjs.map +0 -1
  133. package/dist/data-transform-nqkqNIb8.d.mts +0 -1
  134. package/dist/diff-database-schema-D_vOsC7_-CtLt0OwZ.mjs.map +0 -1
  135. package/dist/infer-psl-contract-GekjNl5K-C4ELCIth.mjs.map +0 -1
  136. package/dist/op-factory-call-DO-2Ul_8.d.mts +0 -1
  137. package/dist/op-factory-call-DQW9c0ec-C3qv_STE.mjs.map +0 -1
  138. package/dist/planner-CKWtXyFH-BzpDX4M9.mjs.map +0 -1
  139. package/dist/planner-produced-postgres-migration-CoX6OBqo.d.mts +0 -1
  140. package/dist/planner-produced-postgres-migration-DgUtdqVh-DEhVIDmO.d.mts.map +0 -1
  141. package/dist/planner-target-details-HkP4RrRO-D6VtK0jY.d.mts +0 -12
  142. package/dist/planner-target-details-HkP4RrRO-D6VtK0jY.d.mts.map +0 -1
  143. package/dist/postgres-database-schema-node-BjmJ6_Cs-LyZ0n9oj.d.mts.map +0 -1
  144. package/dist/postgres-migration-MVAsm-Co-CcN0UJd7.d.mts.map +0 -1
  145. package/dist/postgres-migration-uFrgXH6E-DCGpBoJ_.mjs.map +0 -1
  146. package/dist/postgres-table-schema-node-nY6II-Uv-Bj-lgmSi.mjs.map +0 -1
  147. package/dist/resolve-ddl-schema-BZzteXH1-C57Iavtu.mjs.map +0 -1
  148. package/dist/schema-ir-annotations-BygaWBiC.d.mts +0 -15
  149. package/dist/schema-ir-annotations-BygaWBiC.d.mts.map +0 -1
  150. package/dist/types-oaZIR8i0.d.mts +0 -2
@@ -1,10 +1,10 @@
1
1
  import { t as PostgresRlsPolicy } from "./postgres-rls-policy-CnDxf3z9-BjpVyUnK.mjs";
2
2
  import "./types-ue6jkJyF-D79DmBTl.mjs";
3
3
  import { s as CreateIndexElements } from "./nodes-s0Oe37jT-Cw3BU2gL.mjs";
4
- import { t as PostgresPlanTargetDetails } from "./planner-target-details-HkP4RrRO-D6VtK0jY.mjs";
5
- import { n as DataTransformColumn } from "./data-transform-nGy9rz87-CE3DGlgn.mjs";
4
+ import { t as PostgresPlanTargetDetails } from "./planner-target-details-boDXR2s7-CExrk6rf.mjs";
5
+ import { n as DataTransformColumn } from "./data-transform-2o0tpMs8-DADYIvEZ.mjs";
6
6
  import { t as ColumnTypeCheck } from "./planner-sql-checks-Ed-WGtge-D9ByMrW4.mjs";
7
- import { i as ForeignKeySpec, n as AutoincrementWidth, o as RenamableConstraintKind, r as CreateIndexExtras, t as AlterColumnTypeClass } from "./indexes-BYf6nXVv-BXwLw7fO.mjs";
7
+ import { i as ForeignKeySpec, n as AutoincrementWidth, o as RenamableConstraintKind, r as CreateIndexExtras, t as AlterColumnTypeClass } from "./indexes-ooG0J-V8-CTm1QvmZ.mjs";
8
8
  import { DdlColumn, DdlTableConstraint } from "@prisma/orm-family-sql/relational-core/ast";
9
9
  import { DataType } from "@prisma/orm-framework/components/codec";
10
10
  import { EnumValueCoordinateJson, MigrationOperationClass, OpFactoryCall } from "@prisma/orm-framework/components/control";
@@ -12,7 +12,7 @@ import { JsonKeyPath, JsonPath, SqlMigrationPlanOperation, SqlSlot, StoredKeyFil
12
12
  import { ImportRequirement, TsExpression } from "@prisma/orm-framework/ts-render";
13
13
  import { JsonValue } from "@prisma/orm-framework/contract/types";
14
14
  import { ExecuteRequestLowerer, Lowerer } from "@prisma/orm-family-sql/family/control-adapter";
15
- //#region ../../../3-targets/postgres/1-target/dist/op-factory-call-fPC4Yzy6.d.mts
15
+ //#region ../../../3-targets/postgres/1-target/dist/op-factory-call-CG80t74g.d.mts
16
16
  //#region src/core/migrations/op-factory-call.d.ts
17
17
  type Op = SqlMigrationPlanOperation<PostgresPlanTargetDetails>;
18
18
  declare abstract class PostgresOpFactoryCallNode extends TsExpression implements OpFactoryCall {
@@ -410,10 +410,10 @@ declare class RawSqlCall extends PostgresOpFactoryCallNode {
410
410
  declare class CreateExtensionCall extends PostgresOpFactoryCallNode {
411
411
  readonly factoryName: "createExtension";
412
412
  readonly operationClass: "additive";
413
- readonly schemaName: string;
413
+ readonly schemaName: string | undefined;
414
414
  readonly extensionName: string;
415
415
  readonly label: string;
416
- constructor(schemaName: string, extensionName: string);
416
+ constructor(schemaName: string | undefined, extensionName: string);
417
417
  toOp(lowerer?: ExecuteRequestLowerer): Promise<Op>;
418
418
  renderTypeScript(): string;
419
419
  importRequirements(): readonly ImportRequirement[];
@@ -421,10 +421,10 @@ declare class CreateExtensionCall extends PostgresOpFactoryCallNode {
421
421
  declare class DropExtensionCall extends PostgresOpFactoryCallNode {
422
422
  readonly factoryName: "dropExtension";
423
423
  readonly operationClass: "destructive";
424
- readonly schemaName: string;
424
+ readonly schemaName: string | undefined;
425
425
  readonly extensionName: string;
426
426
  readonly label: string;
427
- constructor(schemaName: string, extensionName: string);
427
+ constructor(schemaName: string | undefined, extensionName: string);
428
428
  toOp(lowerer?: ExecuteRequestLowerer): Promise<Op>;
429
429
  renderTypeScript(): string;
430
430
  importRequirements(): readonly ImportRequirement[];
@@ -721,4 +721,4 @@ declare class RenamePostgresRlsPolicyCall extends PostgresOpFactoryCallNode {
721
721
  type PostgresOpFactoryCall = CreateTableCall | DropTableCall | RenameTableCall | AddColumnCall | RenameColumnCall | DropColumnCall | AlterColumnTypeCall | SetNotNullCall | DropNotNullCall | SetDefaultCall | DropDefaultCall | AddRequiredColumnToEmptyTableCall | AddColumnWithTemporaryDefaultCall | AddPrimaryKeyCall | AddForeignKeyCall | AddUniqueCall | AddCheckConstraintCall | RenameConstraintCall | DropCheckConstraintCall | CreateIndexCall | RenameIndexCall | DropIndexCall | DropConstraintCall | RawSqlCall | CreateExtensionCall | DropExtensionCall | SetExtensionSchemaCall | CreateSchemaCall | SetTableSchemaCall | RenameSchemaCall | DropSchemaCall | CreateNativeEnumTypeCall | DropNativeEnumTypeCall | AddNativeEnumValueCall | ReplaceStoredValueCall | RemoveStoredValueCall | RenameStoredKeyCall | RemoveStoredKeyCall | FillStoredKeyCall | DeleteRowsCall | CreatePostgresRlsPolicyCall | DropPostgresRlsPolicyCall | EnableRowLevelSecurityCall | DisableRowLevelSecurityCall | RenamePostgresRlsPolicyCall | DataTransformCall;
722
722
  //#endregion
723
723
  export { EnableRowLevelSecurityCall as A, RenameSchemaCall as B, DropExtensionCall as C, DropPostgresRlsPolicyCall as D, DropNotNullCall as E, RemoveStoredValueCall as F, SetExtensionSchemaCall as G, RenameTableCall as H, RenameColumnCall as I, SetNotNullCall as K, RenameConstraintCall as L, PostgresOpFactoryCall as M, RawSqlCall as N, DropSchemaCall as O, RemoveStoredKeyCall as P, RenameIndexCall as R, DropDefaultCall as S, DropNativeEnumTypeCall as T, ReplaceStoredValueCall as U, RenameStoredKeyCall as V, SetDefaultCall as W, DeleteRowsCall as _, AddNativeEnumValueCall as a, DropColumnCall as b, AddUniqueCall as c, CreateIndexCall as d, CreateNativeEnumTypeCall as f, DataTransformCall as g, CreateTableCall as h, AddForeignKeyCall as i, FillStoredKeyCall as j, DropTableCall as k, AlterColumnTypeCall as l, CreateSchemaCall as m, AddColumnCall as n, AddPrimaryKeyCall as o, CreatePostgresRlsPolicyCall as p, SetTableSchemaCall as q, AddColumnWithTemporaryDefaultCall as r, AddRequiredColumnToEmptyTableCall as s, AddCheckConstraintCall as t, CreateExtensionCall as u, DisableRowLevelSecurityCall as v, DropIndexCall as w, DropConstraintCall as x, DropCheckConstraintCall as y, RenamePostgresRlsPolicyCall as z };
724
- //# sourceMappingURL=op-factory-call-fPC4Yzy6-B6JHyh7J.d.mts.map
724
+ //# sourceMappingURL=op-factory-call-CG80t74g-D9tjd13N.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"op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A0B,kBAAkB,kBAAkB,gBAAgB,qBAAqB,aAAa,sBAAsB,oBAAoB,yBAAyB,mBAAmB,qBAAqB,mBAAmB,iBAAiB,2BAA2B,yBAAyB,yBAAyB,yBAAyB,wBAAwB,sBAAsB,sBAAsB,oBAAoB,iBAAiB,8BAA8B,4BAA4B,6BAA6B,8BAA8B,8BAA8B"}
1
+ {"version":3,"file":"op-factory-call-CG80t74g-D9tjd13N.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/op-factory-call-CG80t74g.d.mts"],"mappings":";;;;;;;;;;;;;;;;KAeK,KAAK,0BAA0B;uBACb,kCAAkC,wBAAwB;oBAC7D;oBACA,gBAAgB;oBAChB;WACT,KAAK,UAAU,UAAU,KAAK,QAAQ;;EAE/C,MAAM,UAAU,kCAAkC,KAAK,QAAQ;EAC/D,+BAA+B;YACrB;;cAEE,wBAAwB;;WAE3B;WACA;WACA;WACA;WACA,kBAAkB;WAClB,sBAAsB;WACtB;EACT,YAAY,oBAAoB,mBAAmB,kBAAkB,aAAa,uBAAuB;EACzG,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;cAEnB,sBAAsB;WACzB;WACA;WACA;WACA;WACA;EACT,YAAY,oBAAoB;EAChC,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;;KAG5B,sBAAsB,uBAAuB;cACpC,wBAAwB;WAC3B;WACA;WACA;WACA;;WAEA;WACA;;;;;WAKA,qBAAqB;EAC9B,YAAY,oBAAoB,sBAAsB,mBAAmB,qBAAqB;EAC9F,MAAM,UAAU,kCAAkC,KAAK,QAAQ;EAC/D,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;cAEnB,sBAAsB;;WAEzB;WACA;WACA;WACA;WACA,QAAQ;;WAER,WAAW;WACX;EACT,YAAY,oBAAoB,mBAAmB,QAAQ,WAAW,oBAAoB;EAC1F,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B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uBAAuB;EAC1E,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;KAE5B,wBAAwB,kBAAkB,gBAAgB,kBAAkB,gBAAgB,mBAAmB,iBAAiB,sBAAsB,iBAAiB,kBAAkB,iBAAiB,kBAAkB,oCAAoC,oCAAoC,oBAAoB,oBAAoB,gBAAgB,yBAAyB,uBAAuB,0BAA0B,kBAAkB,kBAAkB,gBAAgB,qBAAqB,aAAa,sBAAsB,oBAAoB,yBAAyB,mBAAmB,qBAAqB,mBAAmB,iBAAiB,2BAA2B,yBAAyB,yBAAyB,yBAAyB,wBAAwB,sBAAsB,sBAAsB,oBAAoB,iBAAiB,8BAA8B,4BAA4B,6BAA6B,8BAA8B,8BAA8B"}
@@ -0,0 +1 @@
1
+ import "./op-factory-call-CG80t74g-D9tjd13N.mjs";
@@ -1425,7 +1425,7 @@ declare const postgresTargetDescriptorMetaBase: {
1425
1425
  }, import("@prisma/orm-framework/components/components").GeneratorFunctionContribution, ...import("@prisma/orm-framework/components/components").GeneratorFunctionContribution[]];
1426
1426
  readonly controlMutationDefaults: {
1427
1427
  readonly defaultFunctionRegistry: Map<any, any>;
1428
- readonly generatorDescriptors: readonly import("@prisma/orm-framework/components/components").MutationDefaultGeneratorDescriptor[];
1428
+ readonly generatorDescriptors: readonly import("@prisma/orm-framework/components/control").MutationDefaultGeneratorDescriptor[];
1429
1429
  };
1430
1430
  readonly types: {
1431
1431
  readonly queryOperationTypes: {
@@ -1462,4 +1462,4 @@ declare const postgresTargetDescriptorMeta: typeof postgresTargetDescriptorMetaB
1462
1462
  };
1463
1463
  //#endregion
1464
1464
  export { postgresTargetDescriptorMeta as t };
1465
- //# sourceMappingURL=pack-DDHu-CxO.d.mts.map
1465
+ //# sourceMappingURL=pack-BjD3oNln.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pack-DDHu-CxO.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/pack.d.mts"],"mappings":";;;;;;;;;;cASc;WACH;WACA;WACA;WACA,yDAAyD,iBAAiB,uBAAuB;aAC/F;OACN;aACM;OACN;aACM;OACN;aACM;OACN;aACM;OACN;aACM;OACN;aACM;MACP;MACA;;;WAGK;aACE;eACE;iBACE;mBACE;mBACA;mBACA;qBACE;qBACA;;mBAEF;qBACE;;;;eAIN;iBACE;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;qBAGJ;uBACE;uBACA;;;;iBAIN;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;qBAGJ;uBACE;uBACA;;qBAEF;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA;uBACE;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA;uBACE;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA;uBACE;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA;uBACE;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA;uBACE;;;;;eAKR;iBACE;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;;eAMV;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;;;eAGJ;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;;;eAGJ;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;qBAEF;uBACE;uBACA;;;;;eAKR;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;;;eAGJ;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;;;eAGJ;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;mBAEA;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;mBAEA;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;mBAEA;qBACE;;mBAEF;;mBAEA;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;mBACA;qBACE;;;mBAGF;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;mBACA;qBACE;;;mBAGF;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;qBAEF;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;;aAMV,WAAW,SAAS,kEAAkE;aACtF,uEAAuE;aACvE,yBAAyB,SAAS;aAClC;eACE;iBACE;iBACA;iBACA,+DAA+D;UACtE;UACA;UACA;UACA;;iBAEO;mBACE,UAAU,OAAO,oBAAoB,wDAAwD,2BAA2B;;;eAG5H;iBACE;iBACA;iBACA,+DAA+D;UACtE;UACA;UACA;;iBAEO;mBACE,UAAU,OAAO,+BAA+B;;;eAGpD;iBACE;iBACA;iBACA,+DAA+D;UACtE;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;iBAEO;UACP,UAAU,OAAO,yBAAyB,wDAAwD,2BAA2B;UAC7H,eAAe,QAAQ;YACrB;;;;eAIG;iBACE;iBACA;iBACA,+DAA+D;UACtE;UACA;UACA;UACA;;iBAEO;UACP,UAAU,sCAAsC,wBAAwB,yBAAyB,wDAAwD,2BAA2B;UACpL,iBAAiB,QAAQ;YACvB;YACA;;;;eAIG;iBACE;iBACA;iBACA,+DAA+D;UACtE;UACA;UACA;;iBAEO;mBACE,UAAU,sCAAsC,4BAA4B;mBAC5E;;;;aAIN;eACE;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;mBACW;mBACA;;QAEX;UACE,0CAA0C;YACxC;4CACgC;;;eAG7B;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;mBACW;mBACA;;QAEX;UACE,0CAA0C;YACxC;4CACgC;;;eAG7B;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;mBACW;mBACA;;QAEX;UACE,0CAA0C;YACxC;4CACgC;;;eAG7B;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;mBACW;mBACA;;QAEX;UACE,0CAA0C;YACxC;4CACgC;;;eAG7B;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;mBACW;mBACA;;QAEX;UACE,0CAA0C;YACxC;4CACgC;;;eAG7B;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;QACA;UACE,0CAA0C;YACxC;4CACgC;;;eAG7B;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;;eAEN;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;;;aAGR;eACE;iBACE;iBACA;iBACA,qCAAqC;iBACrC,QAAQ,SAAS,sBAAsB,wDAAwD;UACtG;UACA,QAAQ;;;eAGH;iBACE;iBACA;iBACA,qCAAqC;iBACrC;iBACA,QAAQ;mBACN,QAAQ;mBACR,WAAW;mBACX;mBACA;mBACA,uCAAuC;WAC/C,wDAAwD;UACzD;YACE;YACA;YACA;cACE;cACA;;YAEF;YACA;YACA;YACA;;;;;aAKC,wBAAwB;aACxB,0BAA0B;aAC1B,+BAA+B;aAC/B,2BAA2B;;WAE7B;aACE;aACA,YAAY,8DAA8D;eACxE;eACA;iBACE;iBACA,qCAAqC,sDAAsD,6CAA6C,8CAA8C;iBACtL;;;aAGJ;;aAEA;aACA,YAAY,8DAA8D;eACxE;eACA;iBACE;iBACA,qCAAqC,0CAA0C;iBAC/E;;;aAGJ;;aAEA;aACA,YAAY,8DAA8D;eACxE;eACA;iBACE;iBACA,qCAAqC,uDAAuD,6CAA6C,+CAA+C;iBACxL;;;aAGJ;yDAC4C,sFAAsF;WACpI;aACE,yBAAyB;aACzB,mFAAmF;;WAErF;aACE;eACE;iBACE;iBACA;iBACA;;;;WAIN;WACA;WACA;WACA;WACA;WACA;WACA,mEAAmE;WACnE;aACE;aACA;;WAEF,eAAe;;cAEZ,qCAAqC;WACxC,eAAe;WACf,wBAAwB;WACxB,6BAA6B;WAC7B;aACE;eACE;eACA"}
1
+ {"version":3,"file":"pack-BjD3oNln.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/pack.d.mts"],"mappings":";;;;;;;;;;cASc;WACH;WACA;WACA;WACA,yDAAyD,iBAAiB,uBAAuB;aAC/F;OACN;aACM;OACN;aACM;OACN;aACM;OACN;aACM;OACN;aACM;OACN;aACM;MACP;MACA;;;WAGK;aACE;eACE;iBACE;mBACE;mBACA;mBACA;qBACE;qBACA;;mBAEF;qBACE;;;;eAIN;iBACE;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;qBAGJ;uBACE;uBACA;;;;iBAIN;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;qBAGJ;uBACE;uBACA;;qBAEF;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA;uBACE;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA;uBACE;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA;uBACE;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA;uBACE;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA;uBACE;;;;;eAKR;iBACE;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;;eAMV;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;;;eAGJ;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;;;eAGJ;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;qBAEF;uBACE;uBACA;;;;;eAKR;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;;;eAGJ;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;;;eAGJ;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;mBAEA;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;mBAEA;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;mBAEA;qBACE;;mBAEF;;mBAEA;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;mBACA;qBACE;;;mBAGF;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;mBACA;qBACE;;;mBAGF;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;qBAEF;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;iBACA;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;;aAMV,WAAW,SAAS,kEAAkE;aACtF,uEAAuE;aACvE,yBAAyB,SAAS;aAClC;eACE;iBACE;iBACA;iBACA,+DAA+D;UACtE;UACA;UACA;UACA;;iBAEO;mBACE,UAAU,OAAO,oBAAoB,wDAAwD,2BAA2B;;;eAG5H;iBACE;iBACA;iBACA,+DAA+D;UACtE;UACA;UACA;;iBAEO;mBACE,UAAU,OAAO,+BAA+B;;;eAGpD;iBACE;iBACA;iBACA,+DAA+D;UACtE;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;iBAEO;UACP,UAAU,OAAO,yBAAyB,wDAAwD,2BAA2B;UAC7H,eAAe,QAAQ;YACrB;;;;eAIG;iBACE;iBACA;iBACA,+DAA+D;UACtE;UACA;UACA;UACA;;iBAEO;UACP,UAAU,sCAAsC,wBAAwB,yBAAyB,wDAAwD,2BAA2B;UACpL,iBAAiB,QAAQ;YACvB;YACA;;;;eAIG;iBACE;iBACA;iBACA,+DAA+D;UACtE;UACA;UACA;;iBAEO;mBACE,UAAU,sCAAsC,4BAA4B;mBAC5E;;;;aAIN;eACE;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;mBACW;mBACA;;QAEX;UACE,0CAA0C;YACxC;4CACgC;;;eAG7B;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;mBACW;mBACA;;QAEX;UACE,0CAA0C;YACxC;4CACgC;;;eAG7B;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;mBACW;mBACA;;QAEX;UACE,0CAA0C;YACxC;4CACgC;;;eAG7B;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;mBACW;mBACA;;QAEX;UACE,0CAA0C;YACxC;4CACgC;;;eAG7B;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;mBACW;mBACA;;QAEX;UACE,0CAA0C;YACxC;4CACgC;;;eAG7B;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;QACA;UACE,0CAA0C;YACxC;4CACgC;;;eAG7B;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;;eAEN;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;;;aAGR;eACE;iBACE;iBACA;iBACA,qCAAqC;iBACrC,QAAQ,SAAS,sBAAsB,wDAAwD;UACtG;UACA,QAAQ;;;eAGH;iBACE;iBACA;iBACA,qCAAqC;iBACrC;iBACA,QAAQ;mBACN,QAAQ;mBACR,WAAW;mBACX;mBACA;mBACA,uCAAuC;WAC/C,wDAAwD;UACzD;YACE;YACA;YACA;cACE;cACA;;YAEF;YACA;YACA;YACA;;;;;aAKC,wBAAwB;aACxB,0BAA0B;aAC1B,+BAA+B;aAC/B,2BAA2B;;WAE7B;aACE;aACA,YAAY,8DAA8D;eACxE;eACA;iBACE;iBACA,qCAAqC,sDAAsD,6CAA6C,8CAA8C;iBACtL;;;aAGJ;;aAEA;aACA,YAAY,8DAA8D;eACxE;eACA;iBACE;iBACA,qCAAqC,0CAA0C;iBAC/E;;;aAGJ;;aAEA;aACA,YAAY,8DAA8D;eACxE;eACA;iBACE;iBACA,qCAAqC,uDAAuD,6CAA6C,+CAA+C;iBACxL;;;aAGJ;yDAC4C,sFAAsF;WACpI;aACE,yBAAyB;aACzB,gFAAgF;;WAElF;aACE;eACE;iBACE;iBACA;iBACA;;;;WAIN;WACA;WACA;WACA;WACA;WACA;WACA,mEAAmE;WACnE;aACE;aACA;;WAEF,eAAe;;cAEZ,qCAAqC;WACxC,eAAe;WACf,wBAAwB;WACxB,6BAA6B;WAC7B;aACE;eACE;eACA"}
@@ -1,6 +1,6 @@
1
- import { t as PostgresDatabaseSchemaNode } from "./postgres-database-schema-node-BjmJ6_Cs-LyZ0n9oj.mjs";
1
+ import { t as PostgresDatabaseSchemaNode } from "./postgres-database-schema-node-CqEX2NPO-Be-Vk1Iw.mjs";
2
2
  import { t as PostgresContract } from "./postgres-schema-CJvUnBU9-Bvn7zbr1.mjs";
3
- import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-DgUtdqVh-DEhVIDmO.mjs";
3
+ import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-CDkRlHah-Cknq9LDt.mjs";
4
4
  import { AppliedMigrationStatement, MigrationAccessChange, MigrationDataLoss, MigrationPlanNamespaces, MigrationPlanWithAuthoringSurface, MigrationPlanner, MigrationScaffoldContext, MigrationTemporaryValue, PlanOrigin, ResolvedMigrationStatement, SchemaOwnership } from "@prisma/orm-framework/components/control";
5
5
  import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
6
6
  import { ContractToSchemaIROptions, MigrationOperationPolicy, SqlPlannerConflict, SqlPlannerFailureResult } from "@prisma/orm-family-sql/family/control";
@@ -150,4 +150,4 @@ declare class PostgresMigrationPlanner implements MigrationPlanner<'sql', 'postg
150
150
  }
151
151
  //#endregion
152
152
  export { createPostgresMigrationPlanner as n, contractToPostgresDatabaseSchemaNode as t };
153
- //# sourceMappingURL=planner-Cw5KV0_B.d.mts.map
153
+ //# sourceMappingURL=planner-CyyWVHw4.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"planner-Cw5KV0_B.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/planner.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6BiB,qCAAqC,UAAU,yBAAyB,SAAS,4BAA4B;;;iBAG7G,+BAA+B,SAAS,wBAAwB;;;;;;;;KAQ5E;WACM;WACA,MAAM;WACN,oBAAoB;WACpB,4BAA4B;WAC5B,mBAAmB;WACnB,wBAAwB;WACxB,0BAA0B;WAC1B,YAAY;IACnB;;;;;;;;;;;;;;;;;;;cAmBU,oCAAoC;;EAEhD,YAAY,UAAU;EACtB,KAAK;aACM;aACA;aACA,QAAQ;;;;;;;;;;;;;aAaR,cAAc;;aAEd,QAAQ;aACR,qBAAqB;aACrB;aACA,qBAAqB,cAAc;;;;;;aAMnC;;;;;aAKA,YAAY;;;;;;aAMZ;MACP;EACJ,eAAe,SAAS,0BAA0B,kBAAkB;UAC5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA6BA;;;;;UAKA;UACA"}
1
+ {"version":3,"file":"planner-CyyWVHw4.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/planner.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6BiB,qCAAqC,UAAU,yBAAyB,SAAS,4BAA4B;;;iBAG7G,+BAA+B,SAAS,wBAAwB;;;;;;;;KAQ5E;WACM;WACA,MAAM;WACN,oBAAoB;WACpB,4BAA4B;WAC5B,mBAAmB;WACnB,wBAAwB;WACxB,0BAA0B;WAC1B,YAAY;IACnB;;;;;;;;;;;;;;;;;;;cAmBU,oCAAoC;;EAEhD,YAAY,UAAU;EACtB,KAAK;aACM;aACA;aACA,QAAQ;;;;;;;;;;;;;aAaR,cAAc;;aAEd,QAAQ;aACR,qBAAqB;aACrB;aACA,qBAAqB,cAAc;;;;;;aAMnC;;;;;aAKA,YAAY;;;;;;aAMZ;MACP;EACJ,eAAe,SAAS,0BAA0B,kBAAkB;UAC5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA6BA;;;;;UAKA;UACA"}
@@ -1,7 +1,7 @@
1
- import { t as PostgresMigration } from "./postgres-migration-uFrgXH6E-DCGpBoJ_.mjs";
2
- import { t as renderOps } from "./render-ops-BKDfKgOJ-DmoHztdY.mjs";
1
+ import { t as PostgresMigration } from "./postgres-migration-DXKKrCKw-CDLugMuf.mjs";
2
+ import { t as renderOps } from "./render-ops-CXUeDteo-qwmXCohY.mjs";
3
3
  import { t as renderCallsToTypeScript } from "./render-typescript-Dqp1Spgn-B4mJhuVr.mjs";
4
- //#region ../../../3-targets/postgres/1-target/dist/planner-produced-postgres-migration-Dv5BSpUH.mjs
4
+ //#region ../../../3-targets/postgres/1-target/dist/planner-produced-postgres-migration-BYDwCSQf.mjs
5
5
  var TypeScriptRenderablePostgresMigration = class extends PostgresMigration {
6
6
  #calls;
7
7
  #meta;
@@ -44,4 +44,4 @@ var TypeScriptRenderablePostgresMigration = class extends PostgresMigration {
44
44
  //#endregion
45
45
  export { TypeScriptRenderablePostgresMigration as t };
46
46
 
47
- //# sourceMappingURL=planner-produced-postgres-migration-Dv5BSpUH-0NOLwcM4.mjs.map
47
+ //# sourceMappingURL=planner-produced-postgres-migration-BYDwCSQf-Bjxf5uvj.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"planner-produced-postgres-migration-Dv5BSpUH-0NOLwcM4.mjs","names":["#calls","#meta","#spaceId","#snapshotsImportPath","#lowerer","#operationsCache"],"sources":["../../../../3-targets/postgres/1-target/dist/planner-produced-postgres-migration-Dv5BSpUH.mjs"],"sourcesContent":["import { t as PostgresMigration } from \"./postgres-migration-uFrgXH6E.mjs\";\nimport { t as renderOps } from \"./render-ops-BKDfKgOJ.mjs\";\nimport { t as renderCallsToTypeScript } from \"./render-typescript-Dqp1Spgn.mjs\";\n//#region src/core/migrations/planner-produced-postgres-migration.ts\nvar TypeScriptRenderablePostgresMigration = class extends PostgresMigration {\n\t#calls;\n\t#meta;\n\t#spaceId;\n\t#snapshotsImportPath;\n\t#lowerer;\n\t#operationsCache;\n\tconstructor(calls, meta, spaceId, snapshotsImportPath, lowerer) {\n\t\tsuper();\n\t\tthis.#calls = calls;\n\t\tthis.#meta = meta;\n\t\tthis.#spaceId = spaceId;\n\t\tthis.#snapshotsImportPath = snapshotsImportPath;\n\t\tthis.#lowerer = lowerer;\n\t}\n\tget operations() {\n\t\tthis.#operationsCache ??= renderOps(this.#calls, this.#lowerer);\n\t\treturn this.#operationsCache;\n\t}\n\tdescribe() {\n\t\treturn this.#meta;\n\t}\n\t/**\n\t* Contract space this planner-produced plan applies to. Threaded\n\t* from the planner options so the runner keys the marker row by\n\t* the right space when executing the plan.\n\t*/\n\tget spaceId() {\n\t\treturn this.#spaceId;\n\t}\n\trenderTypeScript(resolveImportSpecifier) {\n\t\treturn renderCallsToTypeScript(this.#calls, {\n\t\t\tfrom: this.#meta.from,\n\t\t\tto: this.#meta.to,\n\t\t\tsnapshotsImportPath: this.#snapshotsImportPath,\n\t\t\tresolveImportSpecifier\n\t\t});\n\t}\n};\n//#endregion\nexport { TypeScriptRenderablePostgresMigration as t };\n\n//# sourceMappingURL=planner-produced-postgres-migration-Dv5BSpUH.mjs.map"],"mappings":";;;;AAIA,IAAI,wCAAwC,cAAc,kBAAkB;CAC3E;CACA;CACA;CACA;CACA;CACA;CACA,YAAY,OAAO,MAAM,SAAS,qBAAqB,SAAS;EAC/D,MAAM;EACN,KAAKA,SAAS;EACd,KAAKC,QAAQ;EACb,KAAKC,WAAW;EAChB,KAAKC,uBAAuB;EAC5B,KAAKC,WAAW;CACjB;CACA,IAAI,aAAa;EAChB,KAAKC,qBAAqB,UAAU,KAAKL,QAAQ,KAAKI,QAAQ;EAC9D,OAAO,KAAKC;CACb;CACA,WAAW;EACV,OAAO,KAAKJ;CACb;;;;;;CAMA,IAAI,UAAU;EACb,OAAO,KAAKC;CACb;CACA,iBAAiB,wBAAwB;EACxC,OAAO,wBAAwB,KAAKF,QAAQ;GAC3C,MAAM,KAAKC,MAAM;GACjB,IAAI,KAAKA,MAAM;GACf,qBAAqB,KAAKE;GAC1B;EACD,CAAC;CACF;AACD"}
1
+ {"version":3,"file":"planner-produced-postgres-migration-BYDwCSQf-Bjxf5uvj.mjs","names":["#calls","#meta","#spaceId","#snapshotsImportPath","#lowerer","#operationsCache"],"sources":["../../../../3-targets/postgres/1-target/dist/planner-produced-postgres-migration-BYDwCSQf.mjs"],"sourcesContent":["import { t as PostgresMigration } from \"./postgres-migration-DXKKrCKw.mjs\";\nimport { t as renderOps } from \"./render-ops-CXUeDteo.mjs\";\nimport { t as renderCallsToTypeScript } from \"./render-typescript-Dqp1Spgn.mjs\";\n//#region src/core/migrations/planner-produced-postgres-migration.ts\nvar TypeScriptRenderablePostgresMigration = class extends PostgresMigration {\n\t#calls;\n\t#meta;\n\t#spaceId;\n\t#snapshotsImportPath;\n\t#lowerer;\n\t#operationsCache;\n\tconstructor(calls, meta, spaceId, snapshotsImportPath, lowerer) {\n\t\tsuper();\n\t\tthis.#calls = calls;\n\t\tthis.#meta = meta;\n\t\tthis.#spaceId = spaceId;\n\t\tthis.#snapshotsImportPath = snapshotsImportPath;\n\t\tthis.#lowerer = lowerer;\n\t}\n\tget operations() {\n\t\tthis.#operationsCache ??= renderOps(this.#calls, this.#lowerer);\n\t\treturn this.#operationsCache;\n\t}\n\tdescribe() {\n\t\treturn this.#meta;\n\t}\n\t/**\n\t* Contract space this planner-produced plan applies to. Threaded\n\t* from the planner options so the runner keys the marker row by\n\t* the right space when executing the plan.\n\t*/\n\tget spaceId() {\n\t\treturn this.#spaceId;\n\t}\n\trenderTypeScript(resolveImportSpecifier) {\n\t\treturn renderCallsToTypeScript(this.#calls, {\n\t\t\tfrom: this.#meta.from,\n\t\t\tto: this.#meta.to,\n\t\t\tsnapshotsImportPath: this.#snapshotsImportPath,\n\t\t\tresolveImportSpecifier\n\t\t});\n\t}\n};\n//#endregion\nexport { TypeScriptRenderablePostgresMigration as t };\n\n//# sourceMappingURL=planner-produced-postgres-migration-BYDwCSQf.mjs.map"],"mappings":";;;;AAIA,IAAI,wCAAwC,cAAc,kBAAkB;CAC3E;CACA;CACA;CACA;CACA;CACA;CACA,YAAY,OAAO,MAAM,SAAS,qBAAqB,SAAS;EAC/D,MAAM;EACN,KAAKA,SAAS;EACd,KAAKC,QAAQ;EACb,KAAKC,WAAW;EAChB,KAAKC,uBAAuB;EAC5B,KAAKC,WAAW;CACjB;CACA,IAAI,aAAa;EAChB,KAAKC,qBAAqB,UAAU,KAAKL,QAAQ,KAAKI,QAAQ;EAC9D,OAAO,KAAKC;CACb;CACA,WAAW;EACV,OAAO,KAAKJ;CACb;;;;;;CAMA,IAAI,UAAU;EACb,OAAO,KAAKC;CACb;CACA,iBAAiB,wBAAwB;EACxC,OAAO,wBAAwB,KAAKF,QAAQ;GAC3C,MAAM,KAAKC,MAAM;GACjB,IAAI,KAAKA,MAAM;GACf,qBAAqB,KAAKE;GAC1B;EACD,CAAC;CACF;AACD"}
@@ -1,11 +1,11 @@
1
- import { t as PostgresPlanTargetDetails } from "./planner-target-details-HkP4RrRO-D6VtK0jY.mjs";
2
- import { t as PostgresMigration } from "./postgres-migration-MVAsm-Co-CcN0UJd7.mjs";
1
+ import { t as PostgresPlanTargetDetails } from "./planner-target-details-boDXR2s7-CExrk6rf.mjs";
2
+ import { t as PostgresMigration } from "./postgres-migration-DUgkNwUR-B3Hr27gY.mjs";
3
3
  import { MigrationPlanWithAuthoringSurface, OpFactoryCall } from "@prisma/orm-framework/components/control";
4
4
  import { SqlMigrationPlanOperation } from "@prisma/orm-family-sql/family/control";
5
5
  import { MigrationMeta } from "@prisma/orm-toolchain/migration-tools/migration";
6
6
  import { ImportSpecifierResolver } from "@prisma/orm-framework/components/emission";
7
7
  import { ExecuteRequestLowerer } from "@prisma/orm-family-sql/family/control-adapter";
8
- //#region ../../../3-targets/postgres/1-target/dist/planner-produced-postgres-migration-DgUtdqVh.d.mts
8
+ //#region ../../../3-targets/postgres/1-target/dist/planner-produced-postgres-migration-CDkRlHah.d.mts
9
9
  //#region src/core/migrations/planner-produced-postgres-migration.d.ts
10
10
  declare class TypeScriptRenderablePostgresMigration extends PostgresMigration implements MigrationPlanWithAuthoringSurface {
11
11
  #private;
@@ -22,4 +22,4 @@ declare class TypeScriptRenderablePostgresMigration extends PostgresMigration im
22
22
  }
23
23
  //#endregion
24
24
  export { TypeScriptRenderablePostgresMigration as t };
25
- //# sourceMappingURL=planner-produced-postgres-migration-DgUtdqVh-DEhVIDmO.d.mts.map
25
+ //# sourceMappingURL=planner-produced-postgres-migration-CDkRlHah-Cknq9LDt.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"planner-produced-postgres-migration-CDkRlHah-Cknq9LDt.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/planner-produced-postgres-migration-CDkRlHah.d.mts"],"mappings":";;;;;;;;;cAQc,8CAA8C,6BAA6B;;EAEvF,YAAY,gBAAgB,iBAAiB,MAAM,eAAe,iBAAiB,6BAA6B,UAAU;MACtH,wBAAwB,0BAA0B,6BAA6B,QAAQ,0BAA0B;EACrH,YAAY;;;;;;MAMR;EACJ,iBAAiB,wBAAwB"}
@@ -0,0 +1 @@
1
+ import "./planner-produced-postgres-migration-CDkRlHah-Cknq9LDt.mjs";
@@ -0,0 +1,21 @@
1
+ //#region ../../../3-targets/postgres/1-target/dist/planner-target-details-boDXR2s7.d.mts
2
+ //#region src/core/migrations/planner-target-details.d.ts
3
+ type OperationClass = 'dependency' | 'type' | 'table' | 'column' | 'primaryKey' | 'unique' | 'index' | 'foreignKey' | 'checkConstraint' | 'rlsPolicy' | 'rowLevelSecurity';
4
+ /** The target of an operation that names its schema: every operation except creating or dropping an extension the contract leaves to the search path. */
5
+ interface PostgresSchemaTargetDetails {
6
+ readonly schema: string;
7
+ readonly objectType: OperationClass;
8
+ readonly name: string;
9
+ readonly table?: string;
10
+ }
11
+ /** The target of creating or dropping an extension the contract leaves to the connection's search path, which names no schema. */
12
+ interface PostgresSearchPathExtensionTargetDetails {
13
+ readonly schema?: never;
14
+ readonly objectType: 'dependency';
15
+ readonly name: string;
16
+ readonly table?: never;
17
+ }
18
+ type PostgresPlanTargetDetails = PostgresSchemaTargetDetails | PostgresSearchPathExtensionTargetDetails;
19
+ //#endregion
20
+ export { PostgresPlanTargetDetails as t };
21
+ //# sourceMappingURL=planner-target-details-boDXR2s7-CExrk6rf.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"planner-target-details-boDXR2s7-CExrk6rf.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/planner-target-details-boDXR2s7.d.mts"],"mappings":";;KACK;;UAEK;WACC;WACA,YAAY;WACZ;WACA;;;UAGD;WACC;WACA;WACA;WACA;;KAEN,4BAA4B,8BAA8B"}
@@ -1,25 +1,26 @@
1
1
  import { a as quoteIdentifier } from "./sql-utils-VXrIh8dJ-DVxo_Ygp.mjs";
2
2
  import { t as DEFAULT_NAMESPACE_ID } from "./namespace-ids-xtp_ZY86-Cxc0dBbO.mjs";
3
3
  import { m as isPostgresSchema, o as PostgresRlsPolicy } from "./postgres-schema-BBWgs4fX-DWdYxNi8.mjs";
4
- import { i as PostgresTableSchemaNode, r as PostgresSchemaNodeKind, t as PostgresExtensionSchemaNode } from "./postgres-table-schema-node-nY6II-Uv-Bj-lgmSi.mjs";
5
- import { n as PostgresNamespaceSchemaNode, r as PostgresPolicySchemaNode, t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-DuljIQWp-D6Q5JyEs.mjs";
6
- import { n as emissionSchemaForNamespace, r as resolveDdlSchemaForNamespaceStorage } from "./resolve-ddl-schema-BZzteXH1-C57Iavtu.mjs";
4
+ import { i as PostgresTableSchemaNode, r as PostgresSchemaNodeKind, t as PostgresExtensionSchemaNode } from "./postgres-table-schema-node-OQRI_GIM-DhOVxH8-.mjs";
5
+ import { n as PostgresNamespaceSchemaNode, r as PostgresPolicySchemaNode, t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-yFPLQ6U0-ZCPXs-lG.mjs";
6
+ import { n as emissionSchemaForNamespace, r as resolveDdlSchemaForNamespaceStorage } from "./resolve-ddl-schema-DwoTc0nu-CvyB2Tfu.mjs";
7
7
  import { n as defaultPrimaryKeyName, r as defaultUniqueName, t as defaultForeignKeyName } from "./default-constraint-names-Cz9Yoeim-sUzOGvIm.mjs";
8
- import { B as RenameStoredKeyCall, D as DropPostgresRlsPolicyCall, H as ReplaceStoredValueCall, I as RenameConstraintCall, M as RawSqlCall, N as RemoveStoredKeyCall, O as DropSchemaCall, P as RemoveStoredValueCall, R as RenamePostgresRlsPolicyCall, T as DropNativeEnumTypeCall, _ as DeleteRowsCall, b as DropColumnCall, j as FillStoredKeyCall, k as DropTableCall, l as AlterColumnTypeCall, m as CreateSchemaCall, p as CreatePostgresRlsPolicyCall, q as SetTableSchemaCall, r as AddColumnWithTemporaryDefaultCall, t as AddCheckConstraintCall, v as DisableRowLevelSecurityCall, y as DropCheckConstraintCall, z as RenameSchemaCall } from "./op-factory-call-DQW9c0ec-C3qv_STE.mjs";
9
- import { a as planIssues, c as renderPostgresSuppression, d as resolvePostgresNodeIssueControlPolicySubject, f as resolvePostgresNodeIssueCreationFactoryName, i as issueSchemaName, l as resolveNamespaceIdForDdlSchema, n as conflictForDisallowedCall, o as postgresNodeStorageCoordinate, p as tableAt, r as issueNode, s as postgresPlannerStrategies, t as coalesceSubtreeIssues, u as resolvePostgresCallControlPolicySubject } from "./control-policy-K52VpMX0-CateWffI.mjs";
10
- import { t as buildPostgresPlanDiff } from "./diff-database-schema-D_vOsC7_-CtLt0OwZ.mjs";
11
- import { a as postgresColumnRenameCall, c as postgresTableRenameByHand, d as renderRenameTableCall, i as pairIndexRenames, l as postgresTableRenameCall, n as createWorkingSchema, o as postgresContractToSchema, r as pairCheckRenames, s as postgresSchemaTables, u as renameTableByHandStatements } from "./postgres-migration-uFrgXH6E-DCGpBoJ_.mjs";
12
- import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-Dv5BSpUH-0NOLwcM4.mjs";
8
+ import { B as RenameStoredKeyCall, D as DropPostgresRlsPolicyCall, H as ReplaceStoredValueCall, I as RenameConstraintCall, M as RawSqlCall, N as RemoveStoredKeyCall, O as DropSchemaCall, P as RemoveStoredValueCall, R as RenamePostgresRlsPolicyCall, T as DropNativeEnumTypeCall, _ as DeleteRowsCall, b as DropColumnCall, j as FillStoredKeyCall, k as DropTableCall, l as AlterColumnTypeCall, m as CreateSchemaCall, p as CreatePostgresRlsPolicyCall, q as SetTableSchemaCall, r as AddColumnWithTemporaryDefaultCall, t as AddCheckConstraintCall, v as DisableRowLevelSecurityCall, y as DropCheckConstraintCall, z as RenameSchemaCall } from "./op-factory-call-Bgxtheqh-CsY_eFlX.mjs";
9
+ import { a as planIssues, c as renderPostgresSuppression, d as resolvePostgresNodeIssueControlPolicySubject, f as resolvePostgresNodeIssueCreationFactoryName, i as issueSchemaName, l as resolveNamespaceIdForDdlSchema, n as conflictForDisallowedCall, o as postgresNodeStorageCoordinate, p as tableAt, r as issueNode, s as postgresPlannerStrategies, t as coalesceSubtreeIssues, u as resolvePostgresCallControlPolicySubject } from "./control-policy-BUrgZRnC-BI-Yv8NV.mjs";
10
+ import { t as buildPostgresPlanDiff } from "./diff-database-schema-DPsDQkk4-4hkHTHE_.mjs";
11
+ import { a as postgresColumnRenameCall, c as postgresTableRenameByHand, d as renderRenameTableCall, i as pairIndexRenames, l as postgresTableRenameCall, n as createWorkingSchema, o as postgresContractToSchema, r as pairCheckRenames, s as postgresSchemaTables, u as renameTableByHandStatements } from "./postgres-migration-DXKKrCKw-CDLugMuf.mjs";
12
+ import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-BYDwCSQf-Bjxf5uvj.mjs";
13
13
  import { blindCast } from "@prisma/orm-framework/utils/casts";
14
14
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
15
15
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
16
16
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
17
17
  import { enumValueCoordinateJson, isRenameStatement, issueOutcome } from "@prisma/orm-framework/components/control";
18
18
  import { namingOf, parseWireName } from "@prisma/orm-family-sql/schema-ir/naming";
19
+ import { UNBOUND_PSL_NAMESPACE_NAME } from "@prisma/orm-framework/components/psl-ast";
19
20
  import { UnfilledValue, appliedStatementsInOrder, backfillOfDefaultedField, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldStatementColumns, otherSpaceDeclaring, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planStatements, planStoredRewrites, plannerFailure, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, unknownCallNames } from "@prisma/orm-family-sql/family/control";
20
21
  import { ok } from "@prisma/orm-framework/utils/result";
21
22
  import { governingControlPolicy } from "@prisma/orm-framework/contract/types";
22
- //#region ../../../3-targets/postgres/1-target/dist/planner-CKWtXyFH.mjs
23
+ //#region ../../../3-targets/postgres/1-target/dist/planner-xiEt2PZE.mjs
23
24
  /** The constraint of `nextNodes` the diff pairs with `node` and finds unchanged. */
24
25
  function unchangedIn(node, nextNodes) {
25
26
  return nextNodes.find((next) => next.id === node.id && next.isEqualTo(node));
@@ -451,6 +452,8 @@ var PostgresMigrationPlanner = class {
451
452
  const schemaName = options.schemaName ?? Object.keys(options.contract.storage.namespaces).find((id) => id !== UNBOUND_NAMESPACE_ID) ?? UNBOUND_NAMESPACE_ID;
452
453
  const policyResult = this.ensureAdditivePolicy(options.policy);
453
454
  if (policyResult) return policyResult;
455
+ const packExtensions = extensionsDeclaredByPacks(options);
456
+ if (packExtensions.length > 0) return plannerFailure(packExtensions);
454
457
  PostgresDatabaseSchemaNode.assert(options.schema);
455
458
  const statements = this.planStatements(options, options.schema);
456
459
  if (!statements.ok) return plannerFailure([statements.failure]);
@@ -971,7 +974,18 @@ function retainUnownedExtras(issues, ownership, namespaceIdOf) {
971
974
  if (node === void 0) return true;
972
975
  const coordinate = postgresNodeStorageCoordinate(node);
973
976
  if (coordinate === void 0) return true;
974
- const ddlSchemaName = PostgresExtensionSchemaNode.is(node) ? node.schemaName : issueSchemaName(issue);
977
+ if (PostgresExtensionSchemaNode.is(node)) {
978
+ if (ownership.declaresEntity({
979
+ namespaceId: UNBOUND_NAMESPACE_ID,
980
+ ...coordinate
981
+ })) return false;
982
+ if (node.location.kind === "searchPath") return true;
983
+ return !ownership.declaresEntity({
984
+ namespaceId: namespaceIdOf(node.location.schemaName),
985
+ ...coordinate
986
+ });
987
+ }
988
+ const ddlSchemaName = issueSchemaName(issue);
975
989
  if (ddlSchemaName === void 0) return true;
976
990
  return !ownership.declaresEntity({
977
991
  namespaceId: namespaceIdOf(ddlSchemaName),
@@ -980,6 +994,22 @@ function retainUnownedExtras(issues, ownership, namespaceIdOf) {
980
994
  });
981
995
  }
982
996
  /**
997
+ * Refuses each extension this contract declares in a named namespace that another contract space declares in the unbound namespace: an extension is declared once, and the pack that declares it installs it.
998
+ */
999
+ function extensionsDeclaredByPacks(options) {
1000
+ const { ownership } = options;
1001
+ if (ownership === void 0) return [];
1002
+ return Object.values(options.contract.storage.namespaces).flatMap((namespace) => namespace.id === UNBOUND_NAMESPACE_ID ? [] : Object.keys(namespace.entries["extension"] ?? {}).filter((name) => ownership.declaresEntity({
1003
+ namespaceId: UNBOUND_NAMESPACE_ID,
1004
+ entityKind: "extension",
1005
+ entityName: name
1006
+ })).map((name) => ({
1007
+ kind: "unsupportedOperation",
1008
+ summary: `Extension "${name}" is declared in namespace "${namespace.id}" by this contract, and an extension pack declares it in namespace "${UNBOUND_PSL_NAMESPACE_NAME}".`,
1009
+ why: "Remove this declaration from the contract; the pack installs the extension."
1010
+ })));
1011
+ }
1012
+ /**
983
1013
  * Returns the one namespace node the relational strategy layer probes for
984
1014
  * live-table existence and reads codec-hook context off — the namespace
985
1015
  * matching the planner's resolved schema name, or the first namespace when
@@ -1068,4 +1098,4 @@ function policyNodeToContractPolicy(node) {
1068
1098
  //#endregion
1069
1099
  export { postgresMarkedRemoval as n, postgresStoredValueCallClasses as r, createPostgresMigrationPlanner as t };
1070
1100
 
1071
- //# sourceMappingURL=planner-CKWtXyFH-BzpDX4M9.mjs.map
1101
+ //# sourceMappingURL=planner-xiEt2PZE-CRK1isjH.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"planner-xiEt2PZE-CRK1isjH.mjs","names":["#lowerer"],"sources":["../../../../3-targets/postgres/1-target/dist/planner-xiEt2PZE.mjs"],"sourcesContent":["import { a as quoteIdentifier } from \"./sql-utils-VXrIh8dJ.mjs\";\nimport { t as DEFAULT_NAMESPACE_ID } from \"./namespace-ids-xtp_ZY86.mjs\";\nimport { r as isPostgresSchema, y as PostgresRlsPolicy } from \"./postgres-schema-BBWgs4fX.mjs\";\nimport { o as PostgresSchemaNodeKind, r as PostgresExtensionSchemaNode, t as PostgresTableSchemaNode } from \"./postgres-table-schema-node-OQRI_GIM.mjs\";\nimport { i as PostgresDatabaseSchemaNode, n as PostgresPolicySchemaNode, r as PostgresNamespaceSchemaNode } from \"./postgres-role-schema-node-yFPLQ6U0.mjs\";\nimport { n as emissionSchemaForNamespace, r as resolveDdlSchemaForNamespaceStorage } from \"./resolve-ddl-schema-DwoTc0nu.mjs\";\nimport { t as buildPostgresPlanDiff } from \"./diff-database-schema-DPsDQkk4.mjs\";\nimport { a as resolvePostgresNodeIssueCreationFactoryName, c as issueNode, d as postgresPlannerStrategies, f as tableAt, i as resolvePostgresNodeIssueControlPolicySubject, l as issueSchemaName, n as resolveNamespaceIdForDdlSchema, o as coalesceSubtreeIssues, p as postgresNodeStorageCoordinate, r as resolvePostgresCallControlPolicySubject, s as conflictForDisallowedCall, t as renderPostgresSuppression, u as planIssues } from \"./control-policy-BUrgZRnC.mjs\";\nimport { n as defaultPrimaryKeyName, r as defaultUniqueName, t as defaultForeignKeyName } from \"./default-constraint-names-Cz9Yoeim.mjs\";\nimport { B as RenameStoredKeyCall, D as DropPostgresRlsPolicyCall, H as ReplaceStoredValueCall, I as RenameConstraintCall, K as SetTableSchemaCall, M as RawSqlCall, N as RemoveStoredKeyCall, O as DropSchemaCall, P as RemoveStoredValueCall, R as RenamePostgresRlsPolicyCall, T as DropNativeEnumTypeCall, _ as DeleteRowsCall, b as DropColumnCall, j as FillStoredKeyCall, k as DropTableCall, l as AlterColumnTypeCall, m as CreateSchemaCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, t as AddCheckConstraintCall, v as DisableRowLevelSecurityCall, y as DropCheckConstraintCall, z as RenameSchemaCall } from \"./op-factory-call-Bgxtheqh.mjs\";\nimport { a as renameTableByHandStatements, c as postgresSchemaTables, d as postgresContractToSchema, i as postgresTableRenameCall, l as pairCheckRenames, n as postgresColumnRenameCall, o as renderRenameTableCall, r as postgresTableRenameByHand, s as createWorkingSchema, u as pairIndexRenames } from \"./postgres-migration-DXKKrCKw.mjs\";\nimport { t as TypeScriptRenderablePostgresMigration } from \"./planner-produced-postgres-migration-BYDwCSQf.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { enumValueCoordinateJson, isRenameStatement, issueOutcome } from \"@internal/framework-components/control\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { UNBOUND_PSL_NAMESPACE_NAME } from \"@internal/framework-components/psl-ast\";\nimport { namingOf, parseWireName } from \"@internal/sql-schema-ir/naming\";\nimport { UnfilledValue, appliedStatementsInOrder, backfillOfDefaultedField, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldStatementColumns, otherSpaceDeclaring, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planStatements, planStoredRewrites, plannerFailure, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, unknownCallNames } from \"@internal/family-sql/control\";\nimport { ok } from \"@internal/utils/result\";\nimport { governingControlPolicy } from \"@internal/contract/types\";\n//#region src/core/migrations/constraint-name-renames.ts\n/** The constraint of `nextNodes` the diff pairs with `node` and finds unchanged. */\nfunction unchangedIn(node, nextNodes) {\n\treturn nextNodes.find((next) => next.id === node.id && next.isEqualTo(node));\n}\n/**\n* The renames of the primary key, unique constraints and foreign keys of one table that the end tree keeps otherwise unchanged but names differently. A constraint's name is its stated name, or the one the planner derives from its table; a start tree read from the database states every name. A constraint whose start and end names differ is renamed to the end name. The diff never compares constraint names, so without these the database keeps the old name. A database may already have the new name, as when Prisma 7 created it and the contract only now states it; the rename's postcheck then holds before it runs, and the runner skips it.\n*/\nfunction constraintNameRenames(input) {\n\tconst { schemaName, from, to, previous, next, droppedConstraintNames } = input;\n\tconst rename = (kind, oldName, unchanged, derivedName) => {\n\t\tif (unchanged === void 0 || droppedConstraintNames.has(oldName)) return [];\n\t\tconst newName = unchanged.name ?? derivedName;\n\t\treturn oldName === newName ? [] : [new RenameConstraintCall(schemaName, to, kind, oldName, newName)];\n\t};\n\tconst primaryKey = previous.primaryKey === void 0 ? [] : rename(\"primaryKey\", previous.primaryKey.name ?? defaultPrimaryKeyName(from), unchangedIn(previous.primaryKey, next.primaryKey === void 0 ? [] : [next.primaryKey]), defaultPrimaryKeyName(to));\n\tconst uniques = previous.uniques.flatMap((unique) => rename(\"unique\", unique.name ?? defaultUniqueName(from, unique.columns), unchangedIn(unique, next.uniques), defaultUniqueName(to, unique.columns)));\n\tconst foreignKeys = previous.foreignKeys.flatMap((fk) => rename(\"foreignKey\", fk.name ?? defaultForeignKeyName(from, fk.columns), unchangedIn(fk, next.foreignKeys), defaultForeignKeyName(to, fk.columns)));\n\treturn [\n\t\t...primaryKey,\n\t\t...uniques,\n\t\t...foreignKeys\n\t];\n}\n/**\n* The constraint renames of a plan: {@link constraintNameRenames} for every table the start tree and the end contract both have, with the start tree as the plan's rename statements left it. The start tree comes from the start contract for `migration plan` and from the database for `db update`, so a database Prisma 8 created under derived names is renamed too once the contract states other names. A constraint one of `plannedCalls` drops is skipped: the plan adds it back under its end name, or not at all.\n*/\nfunction plannedConstraintNameRenames(options, plannedCalls) {\n\tif (!options.policy.allowedOperationClasses.includes(\"widening\")) return [];\n\tPostgresDatabaseSchemaNode.assert(options.schema);\n\tconst startTablesBySchema = new Map(Object.values(options.schema.namespaces).map((namespace) => [namespace.schemaName, namespace.tables]));\n\tconst contract = options.contract;\n\tconst end = postgresContractToSchema(contract, options.frameworkComponents);\n\treturn Object.values(end.namespaces).flatMap((namespace) => {\n\t\tconst startTables = startTablesBySchema.get(namespace.schemaName) ?? {};\n\t\tconst schemaName = resolveNamespaceIdForDdlSchema(contract, namespace.schemaName) === UNBOUND_NAMESPACE_ID ? UNBOUND_NAMESPACE_ID : namespace.schemaName;\n\t\treturn Object.entries(namespace.tables).flatMap(([tableName, next]) => {\n\t\t\tconst previous = startTables[tableName];\n\t\t\tconst droppedConstraintNames = new Set(plannedCalls.flatMap((call) => call.factoryName === \"dropConstraint\" && call.schemaName === schemaName && call.tableName === tableName ? [call.constraintName] : []));\n\t\t\treturn previous === void 0 ? [] : constraintNameRenames({\n\t\t\t\tschemaName,\n\t\t\t\tfrom: tableName,\n\t\t\t\tto: tableName,\n\t\t\t\tprevious,\n\t\t\t\tnext,\n\t\t\t\tdroppedConstraintNames\n\t\t\t});\n\t\t});\n\t});\n}\n//#endregion\n//#region src/core/migrations/operation-subjects.ts\n/**\n* The namespace a schema stands for in the locator's contract, or, for a schema that contract does\n* not declare, such as the new name of a renamed namespace, the schema's own name: a named Postgres\n* namespace's schema is its id.\n*/\nfunction storageNamespaceId(locator, schemaName) {\n\tif (schemaName === UNBOUND_NAMESPACE_ID) return UNBOUND_NAMESPACE_ID;\n\tconst namespaceId = resolveNamespaceIdForDdlSchema(locator.contract, schemaName);\n\treturn namespaceId === UNBOUND_NAMESPACE_ID && schemaName !== \"public\" ? schemaName : namespaceId;\n}\nfunction qualified(schemaName, name) {\n\treturn schemaName === UNBOUND_NAMESPACE_ID ? name : `${schemaName}.${name}`;\n}\nfunction target(locator, schemaName, table, column) {\n\treturn {\n\t\tstorageName: qualified(schemaName, column === void 0 ? table : `${table}.${column}`),\n\t\ttable: {\n\t\t\tnamespaceId: storageNamespaceId(locator, schemaName),\n\t\t\ttable,\n\t\t\tcolumn\n\t\t}\n\t};\n}\nfunction rawSqlTarget(locator, call) {\n\tconst details = call.op.target.details;\n\tif (details === void 0) return {\n\t\tstorageName: call.op.id,\n\t\ttable: void 0\n\t};\n\tif (details.objectType === \"table\") return target(locator, details.schema, details.name, void 0);\n\tif (details.objectType === \"column\" && details.table !== void 0) return target(locator, details.schema, details.table, details.name);\n\treturn {\n\t\tstorageName: storageNameOfOperation(call.op),\n\t\ttable: void 0\n\t};\n}\nfunction knownTarget(locator, call) {\n\tif (call instanceof DropTableCall) return target(locator, call.schemaName, call.tableName, void 0);\n\tif (call instanceof DeleteRowsCall) return {\n\t\t...target(locator, call.schemaName, call.tableName, void 0),\n\t\t...ifDefined(\"model\", locator.variantRows?.get(call))\n\t};\n\tif (call instanceof DropColumnCall || call instanceof AlterColumnTypeCall) return target(locator, call.schemaName, call.tableName, call.columnName);\n\tif (call instanceof RemoveStoredKeyCall) return {\n\t\t...target(locator, call.schemaName, call.tableName, call.columnName),\n\t\t...ifDefined(\"valueObjectField\", locator.storedKeys?.get(call))\n\t};\n\tif (call instanceof RemoveStoredValueCall) {\n\t\tconst enumValue = locator.storedValues?.get(call)?.enumValue;\n\t\treturn {\n\t\t\t...target(locator, call.schemaName, call.tableName, call.columnName),\n\t\t\t...ifDefined(\"enumValue\", enumValue)\n\t\t};\n\t}\n\tif (call instanceof RawSqlCall) return rawSqlTarget(locator, call);\n\tconst fieldEvent = locator.fieldEvents.get(call);\n\treturn fieldEvent === void 0 ? void 0 : fieldEventStorage(fieldEvent);\n}\n/**\n* A policy's identity across a replacement: its name, or the prefix of a generated (wire) name,\n* whose hash changes with the policy's body.\n*/\nfunction policyKey(schemaName, tableName, policyName) {\n\treturn JSON.stringify([\n\t\tschemaName,\n\t\ttableName,\n\t\tparseWireName(policyName)?.prefix ?? policyName\n\t]);\n}\n/**\n* The policies the plan creates. A drop of one of them, by name or by generated-name prefix, is\n* half of a replacement, which leaves a policy in place, so it widens no access.\n*/\nfunction createdPolicies(calls) {\n\treturn new Set(calls.flatMap((call) => call instanceof CreatePostgresRlsPolicyCall ? [policyKey(call.schemaName, call.tableName, call.policy.name)] : []));\n}\n/**\n* Disabling row-level security widens access: every role with table privileges then reads and\n* writes every row. Dropping a policy changes access either way, since a permissive policy grants\n* access and a restrictive one limits it, unless the plan creates the policy again.\n*/\nfunction accessChangesOf(locator, call, replaced) {\n\tif (call instanceof DisableRowLevelSecurityCall) return [{\n\t\t...target(locator, call.schemaName, call.tableName, void 0),\n\t\twidens: true\n\t}];\n\tif (call instanceof DropPostgresRlsPolicyCall && !replaced.has(policyKey(call.schemaName, call.tableName, call.policyName))) return [{\n\t\t...target(locator, call.schemaName, call.tableName, void 0),\n\t\twidens: false\n\t}];\n\treturn [];\n}\n/** The temporary values a call writes: a new required column's, or a planner-written fill's of a value object field. */\nfunction temporaryValuesOf(locator, call) {\n\tif (call instanceof AddColumnWithTemporaryDefaultCall) return [{\n\t\ttable: call.tableName,\n\t\tcolumn: call.columnName,\n\t\tvalue: call.temporaryDefault\n\t}];\n\tconst valueObjectField = locator.storedKeys?.get(call);\n\tif (!(call instanceof FillStoredKeyCall) || call.value instanceof UnfilledValue || valueObjectField === void 0) return [];\n\treturn [{\n\t\ttable: call.tableName,\n\t\tcolumn: call.columnName,\n\t\tvalue: JSON.stringify(call.value),\n\t\tvalueObjectField\n\t}];\n}\nfunction operationCountOf(call) {\n\treturn \"companions\" in call && Array.isArray(call.companions) ? 1 + call.companions.length : 1;\n}\n/** What each call of a Postgres plan loses, and whose access it changes. */\nfunction postgresCallSubjects(calls, locator) {\n\tconst replaced = createdPolicies(calls);\n\tconst destructive = calls.filter((call) => call.operationClass === \"destructive\");\n\tconst known = new Map(destructive.map((call) => [call, knownTarget(locator, call)]));\n\tconst unknownNames = unknownCallNames(destructive.filter((call) => known.get(call) === void 0));\n\treturn calls.map((call) => {\n\t\tconst lossTarget = known.get(call);\n\t\tconst unknownName = unknownNames.get(call);\n\t\tconst loss = call instanceof AlterColumnTypeCall ? \"typeChange\" : \"drop\";\n\t\treturn {\n\t\t\toperationCount: operationCountOf(call),\n\t\t\tlabel: call.label,\n\t\t\tdataLoss: lossTarget !== void 0 ? [{\n\t\t\t\t...lossTarget,\n\t\t\t\tloss,\n\t\t\t\t...ifDefined(\"keepDataEdit\", locator.storedValues?.get(call)?.keepDataEdit)\n\t\t\t}] : unknownName !== void 0 ? [{\n\t\t\t\tstorageName: unknownName,\n\t\t\t\ttable: void 0,\n\t\t\t\tloss\n\t\t\t}] : [],\n\t\t\taccessChanges: accessChangesOf(locator, call, replaced),\n\t\t\ttemporaryValues: temporaryValuesOf(locator, call)\n\t\t};\n\t});\n}\n//#endregion\n//#region src/core/migrations/stored-value-calls.ts\n/** The calls that carry out a plan's stored value rewrites, each with the rewrite it carries out. */\nfunction postgresStoredValueCalls(rewrites, contract, codecs) {\n\treturn new Map(rewrites.map((rewrite) => {\n\t\tconst schemaName = emissionSchemaForNamespace(contract, rewrite.namespaceId);\n\t\tconst codec = rewrite.codecRef === void 0 ? void 0 : {\n\t\t\tcodecRef: rewrite.codecRef,\n\t\t\tcodecs\n\t\t};\n\t\tconst { member } = rewrite;\n\t\treturn [rewrite.to === void 0 ? new RemoveStoredValueCall(schemaName, rewrite.table, rewrite.column, rewrite.from, rewrite.many, codec, enumValueCoordinateJson(rewrite.enumValue), member?.path, member?.nullable === true ? true : void 0) : new ReplaceStoredValueCall(schemaName, rewrite.table, rewrite.column, rewrite.from, rewrite.to, rewrite.many, codec, member?.path), rewrite];\n\t}));\n}\n/** The calls that carry out a plan's key rewrites of value object fields, each with the rewrite it carries out. */\nfunction postgresStoredKeyCalls(rewrites, contract) {\n\treturn new Map(rewrites.map((rewrite) => {\n\t\tconst schemaName = emissionSchemaForNamespace(contract, rewrite.namespaceId);\n\t\treturn [rewrite.to === void 0 ? new RemoveStoredKeyCall(schemaName, rewrite.table, rewrite.column, rewrite.path) : new RenameStoredKeyCall(schemaName, rewrite.table, rewrite.column, rewrite.path, rewrite.to), rewrite];\n\t}));\n}\n/** The calls that carry out a plan's fills of value object fields, each with the fill it carries out. */\nfunction postgresStoredKeyFillCalls(fills, contract) {\n\treturn new Map(fills.map((fill) => [new FillStoredKeyCall(emissionSchemaForNamespace(contract, fill.namespaceId), fill.table, fill.column, fill.path, fill.value, {\n\t\ttext: fill.field,\n\t\tcheck: void 0\n\t}), fill]));\n}\n/** The calls that carry out a plan's row rewrites of variants, each with the rewrite it carries out. */\nfunction postgresVariantRowCalls(rewrites, contract, codecs) {\n\treturn new Map(rewrites.map((rewrite) => {\n\t\tconst schemaName = emissionSchemaForNamespace(contract, rewrite.namespaceId);\n\t\tconst codec = {\n\t\t\tcodecRef: rewrite.codecRef,\n\t\t\tcodecs\n\t\t};\n\t\treturn [rewrite.to === void 0 ? new DeleteRowsCall(schemaName, rewrite.table, rewrite.column, rewrite.from, codec) : new ReplaceStoredValueCall(schemaName, rewrite.table, rewrite.column, rewrite.from, rewrite.to, false, codec), rewrite];\n\t}));\n}\n/** Puts the stored value calls among the calls the diff plans, which order them. */\nfunction storedValueCallsStrategy(calls) {\n\treturn (issues) => calls.length === 0 ? { kind: \"no_match\" } : {\n\t\tkind: \"match\",\n\t\tissues,\n\t\tcalls\n\t};\n}\n/** How the family's stored value code tells Postgres removals apart and builds replacements. */\nconst postgresStoredValueCallClasses = {\n\tisRemoval: (call) => call instanceof RemoveStoredValueCall,\n\treplacementOf: (removal, { from, to }) => new ReplaceStoredValueCall(removal.schemaName, removal.tableName, removal.columnName, from, to, removal.many, removal.codec, removal.path?.text)\n};\nconst RENDER_ONLY_CODECS = { descriptorFor: () => void 0 };\n/** The removal a failed check's mark describes, in the schema its operation names, as `migration.ts` writes it. */\nfunction postgresMarkedRemoval(schema, mark) {\n\tconst codec = mark.codecRef === void 0 ? void 0 : {\n\t\tcodecRef: mark.codecRef,\n\t\tcodecs: RENDER_ONLY_CODECS\n\t};\n\treturn new RemoveStoredValueCall(schema, mark.table, mark.column, mark.value, false, codec, mark.enumValue, mark.path);\n}\n//#endregion\n//#region src/core/migrations/type-change-checks.ts\nfunction tableIn(tree, ddlSchemaName, tableName) {\n\treturn Object.values(tree.namespaces).find((node) => node.schemaName === ddlSchemaName)?.tables[tableName];\n}\nfunction escapedForPattern(text) {\n\treturn text.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n/**\n* Whether a check's predicate names the column, quoted or bare. The predicate is opaque SQL, so this\n* reads its text, and may name a check that does not depend on the column: dropping and adding\n* such a check again changes nothing.\n*/\nfunction mentionsColumn(check, column) {\n\tconst quoted = escapedForPattern(quoteIdentifier(column));\n\tconst bare = escapedForPattern(column);\n\treturn new RegExp(`${quoted}|(?<![\\\\w$\"])${bare}(?![\\\\w$\"])`, \"i\").test(check.expression);\n}\n/**\n* Puts a drop of each check that names a column a type change alters before the first such type\n* change, and the check back after the last. Postgres stores a check bound to the column's old type,\n* such as `array_position(tags, NULL::integer)`, and re-checks it while it alters the type, so a\n* check left in place can fail the alter; a check that names two retyped columns can only be added\n* back once both have their new types. Only checks the plan keeps unchanged are moved: one the plan\n* drops or adds is already planned around the alter. The check is added back as the destination\n* contract writes it.\n*/\nfunction withChecksAroundTypeChanges(input) {\n\tconst moved = /* @__PURE__ */ new Map();\n\tinput.calls.forEach((call, index) => {\n\t\tif (!(call instanceof AlterColumnTypeCall)) return;\n\t\tconst ddlSchemaName = input.ddlSchemaOf(call.schemaName);\n\t\tconst kept = tableIn(input.actual, ddlSchemaName, call.tableName)?.checks ?? [];\n\t\tfor (const check of tableIn(input.expected, ddlSchemaName, call.tableName)?.checks ?? []) {\n\t\t\tif (!mentionsColumn(check, call.columnName)) continue;\n\t\t\tif (!kept.some(({ name }) => name === check.name)) continue;\n\t\t\tconst key = JSON.stringify([\n\t\t\t\tddlSchemaName,\n\t\t\t\tcall.tableName,\n\t\t\t\tcheck.name\n\t\t\t]);\n\t\t\tconst entry = moved.get(key);\n\t\t\tif (entry === void 0) moved.set(key, {\n\t\t\t\tschemaName: call.schemaName,\n\t\t\t\ttableName: call.tableName,\n\t\t\t\tcheck,\n\t\t\t\tfirst: index,\n\t\t\t\tlast: index\n\t\t\t});\n\t\t\telse entry.last = index;\n\t\t}\n\t});\n\tconst entries = [...moved.values()];\n\treturn input.calls.flatMap((call, index) => [\n\t\t...entries.filter(({ first }) => first === index).map(({ schemaName, tableName, check }) => new DropCheckConstraintCall(schemaName, tableName, check.name)),\n\t\tcall,\n\t\t...entries.filter(({ last }) => last === index).map(({ schemaName, tableName, check }) => new AddCheckConstraintCall(schemaName, tableName, check.name, check.expression))\n\t]);\n}\n//#endregion\n//#region src/core/migrations/verify-postgres-namespaces.ts\n/**\n* Resolves the live-database schema name for a given namespace\n* coordinate. Mirrors `resolveDdlSchemaForNamespace` in\n* `planner-strategies.ts` so the verifier's projection and the\n* planner's projection always agree — Postgres-aware namespaces (the\n* production path) dispatch to `ddlSchemaName(storage)`, and bare\n* object payloads (used by some tests) fall back to the coordinate\n* itself.\n*/\nfunction resolveDdlSchemaName(storage, namespaceId) {\n\tconst namespace = storage.namespaces[namespaceId];\n\tif (isPostgresSchema(namespace)) return namespace.ddlSchemaName(storage);\n\treturn namespaceId;\n}\n/**\n* Reads the introspected list of schema names from the database-root schema\n* node. `existingSchemas` is database-level, so it lives on the\n* `PostgresDatabaseSchemaNode` root — not on the per-schema namespace nodes.\n*\n* Defaults to the always-present `public` schema when the node is not the\n* database root — a fresh Postgres database always carries `public` (unless an\n* operator dropped it manually), so any verifier path that runs without an\n* enriched introspection still suppresses the redundant `CREATE SCHEMA\n* \"public\"`.\n*\n* Production introspection (`PostgresControlAdapter.introspect`) is the\n* authoritative source: it queries `pg_namespace` and sets `existingSchemas`\n* on the returned root. Tests that want to assert against a richer initial\n* state construct a `PostgresDatabaseSchemaNode` explicitly.\n*/\nfunction existingSchemasFromSchema(schema) {\n\tif (PostgresDatabaseSchemaNode.is(schema)) return schema.existingSchemas;\n\treturn [DEFAULT_NAMESPACE_ID];\n}\n/**\n* Emits a `postgres-namespace` `not-found` diff issue for every\n* contract-declared Postgres namespace whose live container does not yet\n* exist. The planner prepends these (node-typed, synthesized) to the\n* relational diff issues so a multi-schema plan emits `CREATE SCHEMA`\n* before the tables that need it — a planner-only concern (verify already\n* rejects via the `not-found` table issues a missing schema already\n* produces), so this is not part of the shared diff.\n*\n* A namespace's live container is the schema returned by its\n* polymorphic `ddlSchemaName(storage)` method — named schemas resolve\n* to their own id; the unbound singleton returns `UNBOUND_NAMESPACE_ID`\n* and is skipped explicitly (late-bound namespaces have no fixed DDL\n* schema). Issues are emitted only when the resolved name is a real,\n* creatable schema (not the unbound sentinel) and is missing from the\n* introspected list. `public` is suppressed implicitly because the\n* introspection (or its sensible default) always carries it.\n*\n* Each emitted issue's path is `['database', ddlName]` — an ancestor of\n* every table path under that schema, so it must never be run through\n* `coalesceSubtreeIssues` alongside the table diff (it would swallow the\n* table-level `not-found` issues that drive `CREATE TABLE`); the planner\n* adds these AFTER coalescing the relational issues, and they are not\n* subject to sibling-space ownership scoping (mirrors the retired\n* coordinate walk, which prepended namespace issues after that filter).\n*/\nfunction verifyPostgresNamespacePresence(input) {\n\tconst { contract, schema } = input;\n\tconst existing = new Set(existingSchemasFromSchema(schema));\n\tconst issues = [];\n\tconst namespaceIds = Object.keys(contract.storage.namespaces).sort();\n\tfor (const namespaceId of namespaceIds) {\n\t\tif (namespaceId === UNBOUND_NAMESPACE_ID) continue;\n\t\tconst ddlName = resolveDdlSchemaName(contract.storage, namespaceId);\n\t\tif (ddlName === UNBOUND_NAMESPACE_ID) continue;\n\t\tif (existing.has(ddlName)) continue;\n\t\tconst namespace = new PostgresNamespaceSchemaNode({\n\t\t\tschemaName: ddlName,\n\t\t\ttables: {}\n\t\t});\n\t\tissues.push({\n\t\t\tpath: [\"database\", ddlName],\n\t\t\texpected: namespace\n\t\t});\n\t}\n\treturn issues;\n}\n//#endregion\n//#region src/core/migrations/planner.ts\nfunction partitionPostgresCallsByControlPolicy(calls, contract) {\n\treturn partitionCallsByControlPolicy({\n\t\tcalls,\n\t\tcontract,\n\t\tresolveControlPolicySubject: (call) => resolvePostgresCallControlPolicySubject(call, contract),\n\t\tresolveFactoryName: (call) => call.factoryName\n\t});\n}\nfunction createPostgresMigrationPlanner(lowerer) {\n\treturn new PostgresMigrationPlanner(lowerer);\n}\n/**\n* Postgres migration planner — a thin wrapper over `planIssues`.\n*\n* `plan()` diffs the target contract against the live schema via the one\n* differ (`buildPostgresPlanDiff`, producing node-typed `SchemaDiffIssue[]`)\n* and delegates to `planIssues` with the unified `postgresPlannerStrategies`\n* list: NOT-NULL backfill, type-change, nullable-tightening, codec-hook\n* storage types, component-declared dependency installs, and\n* shared-temp-default / empty-table-guarded NOT-NULL add-column. The same\n* strategy list runs for `migration plan`, `db update`, and `db init`;\n* behavior diverges purely on `policy.allowedOperationClasses` (the\n* data-safe strategies short-circuit when `'data'` is excluded). The issue\n* planner applies operation-class policy gates and emits a single\n* `PostgresOpFactoryCall[]` that drives both the runtime-ops view (via\n* `renderOps`) and the `renderTypeScript()` authoring surface. RLS policy\n* drift (the structural half of the same one-differ tree) is handled\n* separately via `planPostgresSchemaDiff`.\n*/\nvar PostgresMigrationPlanner = class {\n\t#lowerer;\n\tconstructor(lowerer) {\n\t\tthis.#lowerer = lowerer;\n\t}\n\tplan(options) {\n\t\treturn this.planSql(blindCast(options));\n\t}\n\temptyMigration(context, spaceId) {\n\t\treturn new TypeScriptRenderablePostgresMigration([], {\n\t\t\tfrom: context.fromHash,\n\t\t\tto: context.toHash\n\t\t}, spaceId, context.snapshotsImportPath, this.#lowerer);\n\t}\n\tplanSql(options) {\n\t\tconst schemaName = options.schemaName ?? Object.keys(options.contract.storage.namespaces).find((id) => id !== UNBOUND_NAMESPACE_ID) ?? UNBOUND_NAMESPACE_ID;\n\t\tconst policyResult = this.ensureAdditivePolicy(options.policy);\n\t\tif (policyResult) return policyResult;\n\t\tconst packExtensions = extensionsDeclaredByPacks(options);\n\t\tif (packExtensions.length > 0) return plannerFailure(packExtensions);\n\t\tPostgresDatabaseSchemaNode.assert(options.schema);\n\t\tconst statements = this.planStatements(options, options.schema);\n\t\tif (!statements.ok) return plannerFailure([statements.failure]);\n\t\tconst { schema } = statements.value;\n\t\tconst removedSchemas = removedNamespaceSchemas(options, schema);\n\t\tconst { issues: rawIssues, expected: expectedSchema } = buildPostgresPlanDiff({\n\t\t\tcontract: options.contract,\n\t\t\tactualSchema: schema,\n\t\t\tframeworkComponents: options.frameworkComponents,\n\t\t\toriginSchemas: originSchemaNames(options.fromContract),\n\t\t\toriginExtensions: originExtensionNames(options.fromContract)\n\t\t});\n\t\tconst droppedTables = rawIssues.filter((issue) => issueOutcome(issue) === \"not-expected\" && issueNode(issue)?.nodeKind === PostgresSchemaNodeKind.table);\n\t\tconst policyDiffIssues = rawIssues.filter((issue) => isPolicyDiffIssue(issue) && !droppedTables.some((table) => isWithin(issue.path, table.path)));\n\t\tconst relationalDiffIssues = rawIssues.filter((issue) => !isPolicyDiffIssue(issue));\n\t\tconst strict = options.policy.allowedOperationClasses.includes(\"widening\") || options.policy.allowedOperationClasses.includes(\"destructive\");\n\t\tconst owned = retainUnownedExtras(coalesceSubtreeIssues(relationalDiffIssues.filter((issue) => !isOriginNamespaceIssue(issue, originSchemaNames(options.fromContract)))), options.ownership, (ddlSchemaName) => namespaceIdOfSchema(options, ddlSchemaName));\n\t\tconst gated = strict ? owned : owned.filter((issue) => issueOutcome(issue) !== \"not-expected\");\n\t\tconst schemaIssues = [...verifyPostgresNamespacePresence({\n\t\t\tcontract: options.contract,\n\t\t\tschema\n\t\t}), ...gated];\n\t\tconst indexRenames = pairIndexRenames(options, schemaIssues);\n\t\tconst checkRenames = pairCheckRenames(options, schemaIssues);\n\t\tconst renameConsumed = /* @__PURE__ */ new Set([...indexRenames.consumed, ...checkRenames.consumed]);\n\t\tconst plannableIssues = renameConsumed.size === 0 ? schemaIssues : schemaIssues.filter((issue) => !renameConsumed.has(issue));\n\t\tconst codecHooks = extractCodecControlHooks(options.frameworkComponents);\n\t\tconst types = sqlTypeLookupsOf(options.frameworkComponents);\n\t\tconst storedRewrites = planStoredRewrites({\n\t\t\tstatements: options.statements,\n\t\t\tfromContract: options.fromContract,\n\t\t\tcontract: options.contract,\n\t\t\ttables: postgresSchemaTables(schema, options.contract),\n\t\t\ttypes,\n\t\t\tpolicy: options.policy,\n\t\t\tcalls: {\n\t\t\t\tstoredKeyCalls: (rewrites) => postgresStoredKeyCalls(rewrites, options.contract),\n\t\t\t\tstoredKeyFillCalls: (fills) => postgresStoredKeyFillCalls(fills, options.contract),\n\t\t\t\tstoredValueCalls: (rewrites) => postgresStoredValueCalls(rewrites, options.contract, types.codecLookup),\n\t\t\t\tvariantRowCalls: (rewrites) => postgresVariantRowCalls(rewrites, options.contract, types.codecLookup),\n\t\t\t\tstoredValueClasses: postgresStoredValueCallClasses\n\t\t\t}\n\t\t});\n\t\tif (!storedRewrites.ok) return plannerFailure([storedRewrites.failure]);\n\t\tconst relationalSchema = relationalNamespaceNode(schema, schemaName);\n\t\tconst issuePartition = partitionIssuesByControlPolicy({\n\t\t\tissues: plannableIssues,\n\t\t\tcontract: options.contract,\n\t\t\tresolveControlPolicySubject: (issue) => resolvePostgresNodeIssueControlPolicySubject(issue, options.contract),\n\t\t\tresolveCreationFactoryName: resolvePostgresNodeIssueCreationFactoryName\n\t\t});\n\t\tconst caseChangeConflicts = detectTableNameCaseChanges({\n\t\t\tissues: issuePartition.plannable,\n\t\t\ttableOf: (issue) => {\n\t\t\t\tconst node = issueNode(issue);\n\t\t\t\treturn node !== void 0 && PostgresTableSchemaNode.is(node) ? node : void 0;\n\t\t\t},\n\t\t\tnamespaceIdOf: (issue) => resolveNamespaceIdForDdlSchema(options.contract, issueSchemaName(issue) ?? schemaName),\n\t\t\trenameByHandStatements: (rename) => renameTableByHandStatements(options.contract, rename),\n\t\t\trenameTableCall: renderRenameTableCall,\n\t\t\tcontract: options.contract,\n\t\t\tdefaultNamespaceId: DEFAULT_NAMESPACE_ID\n\t\t});\n\t\tif (caseChangeConflicts.length > 0) return plannerFailure(caseChangeConflicts);\n\t\tconst defaultedBackfill = backfillOfDefaultedField(options.statements, options.fromContract, options.contract);\n\t\tif (defaultedBackfill !== void 0) return plannerFailure([defaultedBackfill]);\n\t\tconst result = planIssues({\n\t\t\tissues: issuePartition.plannable,\n\t\t\ttoContract: options.contract,\n\t\t\tfromContract: options.fromContract,\n\t\t\tschemaName,\n\t\t\tcodecHooks,\n\t\t\ttypes,\n\t\t\t...ifDefined(\"schema\", relationalSchema),\n\t\t\tstartTree: schema,\n\t\t\tendTree: expectedSchema,\n\t\t\tforeignKeyDropAuthority: (ddlSchemaName, tableName, foreignKey) => {\n\t\t\t\tconst namespaceId = resolveNamespaceIdForDdlSchema(options.contract, ddlSchemaName);\n\t\t\t\tif ((tableAt(options.contract.storage, namespaceId, tableName) === void 0 && options.ownership?.declaresEntity({\n\t\t\t\t\tnamespaceId,\n\t\t\t\t\tentityKind: \"table\",\n\t\t\t\t\tentityName: tableName\n\t\t\t\t})) === true) return \"otherSpace\";\n\t\t\t\tconst { plannable } = partitionIssuesByControlPolicy({\n\t\t\t\t\tissues: [{\n\t\t\t\t\t\tpath: [\n\t\t\t\t\t\t\t\"database\",\n\t\t\t\t\t\t\tddlSchemaName,\n\t\t\t\t\t\t\ttableName,\n\t\t\t\t\t\t\tforeignKey.id\n\t\t\t\t\t\t],\n\t\t\t\t\t\tactual: foreignKey\n\t\t\t\t\t}],\n\t\t\t\t\tcontract: options.contract,\n\t\t\t\t\tresolveControlPolicySubject: (issue) => resolvePostgresNodeIssueControlPolicySubject(issue, options.contract),\n\t\t\t\t\tresolveCreationFactoryName: resolvePostgresNodeIssueCreationFactoryName\n\t\t\t\t});\n\t\t\t\treturn plannable.length === 1 ? \"allowed\" : \"controlPolicy\";\n\t\t\t},\n\t\t\tpolicy: options.policy,\n\t\t\tframeworkComponents: options.frameworkComponents,\n\t\t\tstatementColumns: fieldStatementColumns(options.statements, options.contract),\n\t\t\tstrategies: [\n\t\t\t\t...postgresPlannerStrategies,\n\t\t\t\tdropRemovedSchemasStrategy(removedSchemas.filter((schemaName) => !keptSchema(options, schemaName))),\n\t\t\t\tstoredValueCallsStrategy(storedRewrites.value.calls)\n\t\t\t]\n\t\t});\n\t\tconst schemaDiff = this.planPostgresSchemaDiff(options, policyDiffIssues);\n\t\tif (!result.ok || schemaDiff.conflicts.length > 0) return plannerFailure([...result.ok ? [] : result.failure, ...schemaDiff.conflicts]);\n\t\tconst renamePartition = partitionPostgresCallsByControlPolicy([\n\t\t\t...indexRenames.calls,\n\t\t\t...checkRenames.calls,\n\t\t\t...plannedConstraintNameRenames({\n\t\t\t\t...options,\n\t\t\t\tschema\n\t\t\t}, result.value.calls)\n\t\t], options.contract);\n\t\tconst schemaDiffPartition = partitionPostgresCallsByControlPolicy(schemaDiff.calls, options.contract);\n\t\tconst fieldEventCalls = planFieldEventCalls({\n\t\t\tpriorContract: options.origin === null ? null : options.fromContract,\n\t\t\tnewContract: options.contract,\n\t\t\tcodecHooks,\n\t\t\ttableRenames: statements.value.tableRenames,\n\t\t\tcolumnRenames: statements.value.columnRenames,\n\t\t\tdataTypes: types.dataTypeLookup\n\t\t});\n\t\tconst fieldEventPartition = partitionPostgresCallsByControlPolicy(blindCast(fieldEventCalls.map(({ call }) => call)), options.contract);\n\t\tconst ordered = movePolicyDropsBeforeBlockedDdl(withChecksAroundTypeChanges({\n\t\t\tcalls: result.value.calls,\n\t\t\texpected: expectedSchema,\n\t\t\tactual: schema,\n\t\t\tddlSchemaOf: (name) => name === UNBOUND_NAMESPACE_ID ? resolveDdlSchemaForNamespaceStorage(options.contract.storage, UNBOUND_NAMESPACE_ID) : name\n\t\t}), schemaDiffPartition.kept);\n\t\tconst calls = [\n\t\t\t...statements.value.calls,\n\t\t\t...ordered.structural,\n\t\t\t...renamePartition.kept,\n\t\t\t...ordered.policyCalls,\n\t\t\t...fieldEventPartition.kept\n\t\t];\n\t\tconst seenWarnings = /* @__PURE__ */ new Set();\n\t\tconst warnings = [\n\t\t\t...issuePartition.suppressions,\n\t\t\t...renamePartition.suppressions,\n\t\t\t...schemaDiff.suppressions,\n\t\t\t...schemaDiffPartition.suppressions,\n\t\t\t...fieldEventPartition.suppressions\n\t\t].map((record) => renderPostgresSuppression(record, options.contract)).filter((warning) => {\n\t\t\tconst key = JSON.stringify(warning);\n\t\t\tif (seenWarnings.has(key)) return false;\n\t\t\tseenWarnings.add(key);\n\t\t\treturn true;\n\t\t});\n\t\treturn Object.freeze({\n\t\t\tkind: \"success\",\n\t\t\tplan: new TypeScriptRenderablePostgresMigration(calls, {\n\t\t\t\tfrom: options.origin?.storageHash ?? null,\n\t\t\t\tto: options.contract.storage.storageHash\n\t\t\t}, options.spaceId, options.snapshotsImportPath, this.#lowerer),\n\t\t\tappliedStatements: appliedStatementsInOrder(options.statements, statements.value.plannedStatements, (statement) => storedRewrites.value.operationIndexes(calls, statement)),\n\t\t\t...subjectsOfCalls(postgresCallSubjects(calls, {\n\t\t\t\tcontract: options.fromContract ?? options.contract,\n\t\t\t\tfieldEvents: new Map(fieldEventCalls.map((fieldEvent) => [fieldEvent.call, fieldEvent])),\n\t\t\t\tstoredValues: storedRewrites.value.storedValues,\n\t\t\t\tstoredKeys: storedRewrites.value.storedKeys,\n\t\t\t\tvariantRows: storedRewrites.value.variantRows\n\t\t\t}), {\n\t\t\t\tfromContract: options.fromContract,\n\t\t\t\tcontract: options.contract,\n\t\t\t\torigins: statements.value.origins,\n\t\t\t\tbyHand: postgresTableRenameByHand(options.contract),\n\t\t\t\tremovedVariants: storedRewrites.value.removedVariants\n\t\t\t}),\n\t\t\tnamespaces: {\n\t\t\t\tremoved: removedSchemas.map((schemaName) => namespaceIdOfSchema(options, schemaName)),\n\t\t\t\tadded: addedNamespaceIds(options)\n\t\t\t},\n\t\t\t...warnings.length > 0 ? { warnings: Object.freeze(warnings) } : {}\n\t\t});\n\t}\n\t/**\n\t* Maps the RLS policy findings of the one combined tree diff\n\t* (`buildPostgresPlanDiff`, already ownership-filtered) into\n\t* `CREATE POLICY` / `DROP POLICY` / `ALTER POLICY … RENAME TO` ops — a\n\t* `not-equal` finding (an exact-named policy whose content drifted)\n\t* becomes drop + create, or a disallowed-call conflict when the policy\n\t* forbids the drop, which is `widening`. It\n\t* does not re-diff — it consumes exactly the policy-node subset of the\n\t* shared diff's issues. Enablement is NOT decided here: `ENABLE`/`DISABLE\n\t* ROW LEVEL SECURITY` derive from the table's marker-driven `rlsEnabled`\n\t* attribute diff on the relational side.\n\t*\n\t* Rename post-pass (the index pass's structure): hash pairing pairs a\n\t* `not-found` and a `not-expected` policy on the SAME table whose\n\t* wire-name content hashes match but prefixes differ (prefix-only rename);\n\t* content pairing then pairs remaining wire-named-missing policies against remaining\n\t* extras of any name shape by verbatim content (the node-owned `contentEquals` —\n\t* exact→wire adoption). Multi-candidate groups pair deterministically\n\t* by sorted name; leftovers proceed as create/drop; an exact-named\n\t* missing policy never content-pairs.\n\t*\n\t* The pairing runs only when the policy allows `widening` (rename's\n\t* class). Without it (db-init's additive-only set), pairing degrades\n\t* deliberately to the additive half: the new name is CREATEd and the old\n\t* policy survives live until a plan that allows `widening` runs —\n\t* emitting an ungated widening rename would only fail at the runner's\n\t* class re-enforcement.\n\t*/\n\tplanPostgresSchemaDiff(options, filteredDiffIssues) {\n\t\tconst allowsWidening = options.policy.allowedOperationClasses.includes(\"widening\");\n\t\tconst missing = [];\n\t\tconst extra = [];\n\t\tconst changed = [];\n\t\tfor (const issue of filteredDiffIssues) if (issueOutcome(issue) === \"not-equal\") {\n\t\t\tconst expected = issue.expected;\n\t\t\tPostgresPolicySchemaNode.assert(expected);\n\t\t\tchanged.push({\n\t\t\t\tnode: expected,\n\t\t\t\tschemaForTable: resolveDdlSchemaForNamespaceStorage(options.contract.storage, expected.namespaceId)\n\t\t\t});\n\t\t} else if (issueOutcome(issue) === \"not-found\") {\n\t\t\tconst expected = issue.expected;\n\t\t\tPostgresPolicySchemaNode.assert(expected);\n\t\t\tmissing.push({\n\t\t\t\tnode: expected,\n\t\t\t\tschemaForTable: resolveDdlSchemaForNamespaceStorage(options.contract.storage, expected.namespaceId)\n\t\t\t});\n\t\t} else if (issueOutcome(issue) === \"not-expected\") {\n\t\t\tconst actual = issue.actual;\n\t\t\tPostgresPolicySchemaNode.assert(actual);\n\t\t\textra.push({\n\t\t\t\tnode: actual,\n\t\t\t\tschemaForTable: resolveDdlSchemaForNamespaceStorage(options.contract.storage, actual.namespaceId)\n\t\t\t});\n\t\t}\n\t\tconst calls = [];\n\t\tconst conflicts = [];\n\t\tconst suppressions = [];\n\t\tconst renamedExtras = /* @__PURE__ */ new Set();\n\t\tconst renamedMissing = /* @__PURE__ */ new Set();\n\t\tconst pairingKey = (finding, hash) => JSON.stringify([\n\t\t\tfinding.schemaForTable,\n\t\t\tfinding.node.tableName,\n\t\t\thash\n\t\t]);\n\t\tif (allowsWidening) {\n\t\t\tconst extrasByGroup = /* @__PURE__ */ new Map();\n\t\t\tfor (const finding of extra) {\n\t\t\t\tconst parsed = parseWireName(finding.node.name);\n\t\t\t\tif (parsed === void 0) continue;\n\t\t\t\tconst key = pairingKey(finding, parsed.hash);\n\t\t\t\tconst group = extrasByGroup.get(key) ?? [];\n\t\t\t\tgroup.push(finding);\n\t\t\t\textrasByGroup.set(key, group);\n\t\t\t}\n\t\t\tfor (const group of extrasByGroup.values()) group.sort((a, b) => a.node.name < b.node.name ? -1 : a.node.name > b.node.name ? 1 : 0);\n\t\t\tconst sortedMissing = [...missing].sort((a, b) => a.node.name < b.node.name ? -1 : a.node.name > b.node.name ? 1 : 0);\n\t\t\tfor (const missingFinding of sortedMissing) {\n\t\t\t\tconst parsed = parseWireName(missingFinding.node.name);\n\t\t\t\tif (parsed === void 0) continue;\n\t\t\t\tconst candidate = extrasByGroup.get(pairingKey(missingFinding, parsed.hash))?.shift();\n\t\t\t\tif (candidate === void 0) continue;\n\t\t\t\trenamedExtras.add(candidate);\n\t\t\t\trenamedMissing.add(missingFinding);\n\t\t\t\tcalls.push(new RenamePostgresRlsPolicyCall(missingFinding.schemaForTable, missingFinding.node.tableName, candidate.node.name, missingFinding.node.name));\n\t\t\t}\n\t\t\tconst sortedExtras = [...extra].sort((a, b) => a.node.name < b.node.name ? -1 : a.node.name > b.node.name ? 1 : 0);\n\t\t\tfor (const missingFinding of sortedMissing) {\n\t\t\t\tif (renamedMissing.has(missingFinding)) continue;\n\t\t\t\tif (missingFinding.node.prefix === void 0) continue;\n\t\t\t\tconst candidate = sortedExtras.find((extraFinding) => !renamedExtras.has(extraFinding) && extraFinding.schemaForTable === missingFinding.schemaForTable && extraFinding.node.tableName === missingFinding.node.tableName && missingFinding.node.contentEquals(extraFinding.node));\n\t\t\t\tif (candidate === void 0) continue;\n\t\t\t\trenamedExtras.add(candidate);\n\t\t\t\trenamedMissing.add(missingFinding);\n\t\t\t\tcalls.push(new RenamePostgresRlsPolicyCall(missingFinding.schemaForTable, missingFinding.node.tableName, candidate.node.name, missingFinding.node.name));\n\t\t\t}\n\t\t}\n\t\tfor (const finding of changed) {\n\t\t\tconst replacement = {\n\t\t\t\tdrop: new DropPostgresRlsPolicyCall(finding.schemaForTable, finding.node.tableName, finding.node.name),\n\t\t\t\tcreate: new CreatePostgresRlsPolicyCall(finding.schemaForTable, finding.node.tableName, policyNodeToContractPolicy(finding.node))\n\t\t\t};\n\t\t\tconst graded = gradePolicyReplacement(replacement, options.contract, options.policy.allowedOperationClasses);\n\t\t\tif (graded.disposition === \"suppress\") {\n\t\t\t\tsuppressions.push(graded.record);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (graded.disposition === \"conflict\") {\n\t\t\t\tconflicts.push(graded.conflict);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcalls.push(replacement.drop);\n\t\t\tcalls.push(replacement.create);\n\t\t}\n\t\tfor (const finding of missing) {\n\t\t\tif (renamedMissing.has(finding)) continue;\n\t\t\tcalls.push(new CreatePostgresRlsPolicyCall(finding.schemaForTable, finding.node.tableName, policyNodeToContractPolicy(finding.node)));\n\t\t}\n\t\tif (allowsWidening) for (const finding of extra) {\n\t\t\tif (renamedExtras.has(finding)) continue;\n\t\t\tcalls.push(new DropPostgresRlsPolicyCall(finding.schemaForTable, finding.node.tableName, finding.node.name));\n\t\t}\n\t\treturn {\n\t\t\tcalls,\n\t\t\tconflicts,\n\t\t\tsuppressions\n\t\t};\n\t}\n\t/**\n\t* Plans the statements against a working copy of `schema`, in order, so each rename's companions\n\t* are computed against the schema the earlier statements left. The diff then runs on that schema.\n\t*/\n\tplanStatements(options, schema) {\n\t\tconst working = createWorkingSchema(schema);\n\t\tconst ddlSchemaOf = (namespaceId) => resolveDdlSchemaForNamespaceStorage(options.contract.storage, namespaceId);\n\t\tconst planned = planStatements({\n\t\t\tstatements: options.statements.filter(isRenameStatement),\n\t\t\tfromContract: options.fromContract,\n\t\t\tcontract: options.contract,\n\t\t\tpolicy: options.policy,\n\t\t\townership: {\n\t\t\t\toracle: options.ownership,\n\t\t\t\tspaceId: options.spaceId\n\t\t\t},\n\t\t\ttarget: {\n\t\t\t\ttables: () => postgresSchemaTables(working.current, options.contract),\n\t\t\t\tnamespaces: {\n\t\t\t\t\tcreateNamespaceCalls: (namespaceId) => {\n\t\t\t\t\t\tconst schemaName = ddlSchemaOf(namespaceId);\n\t\t\t\t\t\treturn working.current.existingSchemas.includes(schemaName) ? [] : [new CreateSchemaCall(schemaName)];\n\t\t\t\t\t},\n\t\t\t\t\tmoveTableCall: (move) => {\n\t\t\t\t\t\tif (options.fromContract === null) throw new InternalError(\"A table move is planned only from an origin contract\");\n\t\t\t\t\t\treturn new SetTableSchemaCall(emissionSchemaForNamespace(options.contract.storage.namespaces[move.from] === void 0 ? options.fromContract : options.contract, move.from), move.table, ddlSchemaOf(move.to));\n\t\t\t\t\t},\n\t\t\t\t\tnamespaceRenameRefusal: postgresNamespaceRenameRefusal,\n\t\t\t\t\trenameNamespaceCall: (rename) => {\n\t\t\t\t\t\tif (options.fromContract === null) throw new InternalError(\"A namespace rename is planned only from an origin contract\");\n\t\t\t\t\t\treturn new RenameSchemaCall(resolveDdlSchemaForNamespaceStorage(options.fromContract.storage, rename.from), ddlSchemaOf(rename.to));\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\trenameTableCall: (rename) => postgresTableRenameCall({\n\t\t\t\t\tprevious: working.current,\n\t\t\t\t\tcontract: options.contract,\n\t\t\t\t\trename,\n\t\t\t\t\tframeworkComponents: options.frameworkComponents\n\t\t\t\t}),\n\t\t\t\trenameColumnCall: (rename) => postgresColumnRenameCall({\n\t\t\t\t\tprevious: working.current,\n\t\t\t\t\tcontract: options.contract,\n\t\t\t\t\trename,\n\t\t\t\t\tframeworkComponents: options.frameworkComponents\n\t\t\t\t}),\n\t\t\t\tapply: (call) => working.apply(call),\n\t\t\t\t...postgresTableRenameByHand(options.contract)\n\t\t\t}\n\t\t});\n\t\tif (!planned.ok) return planned;\n\t\treturn ok({\n\t\t\t...planned.value,\n\t\t\tschema: working.current\n\t\t});\n\t}\n\tensureAdditivePolicy(policy) {\n\t\tif (!policy.allowedOperationClasses.includes(\"additive\")) return plannerFailure([{\n\t\t\tkind: \"unsupportedOperation\",\n\t\t\tsummary: \"Migration planner requires additive operations be allowed\",\n\t\t\twhy: \"The planner requires the \\\"additive\\\" operation class to be allowed in the policy.\"\n\t\t}]);\n\t\treturn null;\n\t}\n};\n/** Whether `path` lies under `ancestor`: a dropped table's policies go with it. */\nfunction isWithin(path, ancestor) {\n\treturn path.length > ancestor.length && ancestor.every((segment, index) => path[index] === segment);\n}\n/**\n* The DDL schemas in which the origin contract declares tables; none without an origin contract.\n* A namespace with no tables, such as the `public` the target always adds, owns nothing.\n*/\nfunction originSchemaNames(fromContract) {\n\tif (fromContract === null) return [];\n\treturn Object.entries(fromContract.storage.namespaces).filter(([namespaceId, namespace]) => namespaceId !== UNBOUND_NAMESPACE_ID && Object.keys(namespace.entries.table ?? {}).length > 0).map(([namespaceId]) => resolveDdlSchemaForNamespaceStorage(fromContract.storage, namespaceId));\n}\n/** The extensions the origin contract declares, in any namespace; none without an origin contract. */\nfunction originExtensionNames(fromContract) {\n\tif (fromContract === null) return [];\n\treturn Object.values(fromContract.storage.namespaces).flatMap((namespace) => Object.keys(namespace.entries[\"extension\"] ?? {}));\n}\n/**\n* The namespaces the destination declares and the origin does not, other than `public` and those a\n* statement renames a namespace to: the new names a rename of a removed namespace may give it.\n*/\nfunction addedNamespaceIds(options) {\n\tconst { fromContract } = options;\n\tif (fromContract === null) return [];\n\tconst renamedTo = new Set(options.statements.flatMap((statement) => statement.kind === \"rename\" && statement.entity === \"namespace\" ? [statement.to] : []));\n\treturn Object.keys(options.contract.storage.namespaces).filter((namespaceId) => namespaceId !== UNBOUND_NAMESPACE_ID && namespaceId !== \"public\" && !renamedTo.has(namespaceId) && !Object.hasOwn(fromContract.storage.namespaces, namespaceId));\n}\n/** Every DDL schema the contract declares, with or without tables. */\nfunction declaredSchemaNames(contract) {\n\treturn new Set(Object.keys(contract.storage.namespaces).filter((namespaceId) => namespaceId !== UNBOUND_NAMESPACE_ID).map((namespaceId) => resolveDdlSchemaForNamespaceStorage(contract.storage, namespaceId)));\n}\n/**\n* The live schemas the origin contract declares and the destination does not: each is dropped,\n* its tables first, each table a data-loss question.\n*/\nfunction removedNamespaceSchemas(options, schema) {\n\tconst destination = declaredSchemaNames(options.contract);\n\treturn originSchemaNames(options.fromContract).filter((schemaName) => schemaName !== \"public\" && !destination.has(schemaName) && schema.namespaces[schemaName] !== void 0);\n}\n/**\n* The issue a schema of the origin contract raises for itself when the destination declares no\n* tables there, which would cover the issues of its tables: they are kept instead, so each table is\n* dropped and asked about on its own, and a removed schema is dropped after them.\n*/\nfunction isOriginNamespaceIssue(issue, originSchemas) {\n\tconst node = issueNode(issue);\n\treturn node !== void 0 && node.nodeKind === PostgresSchemaNodeKind.namespace && originSchemas.includes(issue.path[1] ?? \"\");\n}\n/** A removed schema that stays because another contract space declares it. */\nfunction keptSchema(options, schemaName) {\n\tif (options.fromContract === null) return true;\n\tconst namespaceId = resolveNamespaceIdForDdlSchema(options.fromContract, schemaName);\n\treturn otherSpaceDeclaring({\n\t\toracle: options.ownership,\n\t\tspaceId: options.spaceId\n\t}, namespaceId) !== void 0;\n}\nfunction dropRemovedSchemasStrategy(schemaNames) {\n\treturn (issues) => schemaNames.length === 0 ? { kind: \"no_match\" } : {\n\t\tkind: \"match\",\n\t\tissues,\n\t\tcalls: schemaNames.map((name) => new DropSchemaCall(name))\n\t};\n}\n/**\n* Why a namespace cannot be renamed: `public` is the default schema Prisma owns and Postgres puts\n* on every search path, and a schema another contract space declares would be renamed for it too.\n*/\nfunction postgresNamespaceRenameRefusal(rename) {\n\tconst reason = `\"${DEFAULT_NAMESPACE_ID}\" is the default schema of every Postgres database`;\n\tif (rename.from === \"public\") return {\n\t\treason,\n\t\tfix: `Prisma owns schema \"${rename.from}\", and Postgres puts it on every search path, so a migration does not rename it. Move each model to the new namespace with --rename <Model>:${rename.to}.<Model> instead.`\n\t};\n\tif (rename.to === \"public\") return {\n\t\treason,\n\t\tfix: `Every Postgres database already has schema \"${rename.to}\", so no schema can be renamed to it. Move each model with --rename ${rename.from}.<Model>:<Model> instead.`\n\t};\n}\n/**\n* A diff issue whose node is an RLS policy — the structural half of the one\n* combined tree diff, routed to `planPostgresSchemaDiff` instead of\n* `planIssues`.\n*/\nfunction isPolicyDiffIssue(issue) {\n\tconst node = issue.expected ?? issue.actual;\n\treturn node !== void 0 && PostgresPolicySchemaNode.is(node);\n}\n/**\n* Postgres refuses these statements while a policy uses the object they touch:\n* - dropping a column (2BP01) or changing its type (0A000);\n* - dropping a table that a policy on another table uses (2BP01); a table's own policies go with it;\n* - dropping a native enum type (2BP01);\n* - a destructive codec type operation (a `RawSqlCall` on a type), such as dropping or rebuilding\n* the type (2BP01) or changing a composite type's attribute type (0A000). Additive and widening\n* type operations, such as adding an enum value or renaming the type, go through.\n*\n* So every policy drop moves to just before the first structural call that a policy can block.\n* Without such a call, the policy calls keep their place after the structural calls.\n*/\nfunction movePolicyDropsBeforeBlockedDdl(structural, policyCalls) {\n\tconst firstBlockable = structural.findIndex(policyCanBlock);\n\tif (firstBlockable === -1) return {\n\t\tstructural,\n\t\tpolicyCalls\n\t};\n\tconst isPolicyDrop = (call) => call instanceof DropPostgresRlsPolicyCall;\n\treturn {\n\t\tstructural: [\n\t\t\t...structural.slice(0, firstBlockable),\n\t\t\t...policyCalls.filter(isPolicyDrop),\n\t\t\t...structural.slice(firstBlockable)\n\t\t],\n\t\tpolicyCalls: policyCalls.filter((call) => !isPolicyDrop(call))\n\t};\n}\nfunction policyCanBlock(call) {\n\tif (call instanceof RawSqlCall) return call.operationClass === \"destructive\" && call.op.target.details?.objectType === \"type\";\n\treturn call instanceof DropColumnCall || call instanceof AlterColumnTypeCall || call instanceof DropTableCall || call instanceof DropNativeEnumTypeCall;\n}\n/**\n* Drops a `not-expected` issue when it is a whole extra storage entity (a table\n* or a native enum) that some space in the composition owns. Each such node\n* yields its own storage coordinate (see {@link postgresNodeStorageCoordinate}),\n* so `declaresEntity` answers over the whole composition on one uniform\n* coordinate: a positive answer means a sibling owns this entity here — leave\n* it; a negative answer means a genuine orphan — drop it. A node with no storage\n* coordinate (a namespace, or a deeper column/constraint drift on an owned\n* table) is this space's own and is always kept. No oracle ⇒ keep everything.\n*/\n/**\n* The namespace a live schema stands for: the destination's, or, for a schema only the origin\n* declares, such as one the destination removed, the origin's.\n*/\nfunction namespaceIdOfSchema(options, ddlSchemaName) {\n\tconst namespaceId = resolveNamespaceIdForDdlSchema(options.contract, ddlSchemaName);\n\tif (namespaceId !== UNBOUND_NAMESPACE_ID || ddlSchemaName === \"public\" || options.fromContract === null) return namespaceId;\n\treturn resolveNamespaceIdForDdlSchema(options.fromContract, ddlSchemaName);\n}\nfunction retainUnownedExtras(issues, ownership, namespaceIdOf) {\n\tif (ownership === void 0) return issues;\n\treturn issues.filter((issue) => {\n\t\tif (issueOutcome(issue) !== \"not-expected\") return true;\n\t\tconst node = issueNode(issue);\n\t\tif (node === void 0) return true;\n\t\tconst coordinate = postgresNodeStorageCoordinate(node);\n\t\tif (coordinate === void 0) return true;\n\t\tif (PostgresExtensionSchemaNode.is(node)) {\n\t\t\tif (ownership.declaresEntity({\n\t\t\t\tnamespaceId: UNBOUND_NAMESPACE_ID,\n\t\t\t\t...coordinate\n\t\t\t})) return false;\n\t\t\tif (node.location.kind === \"searchPath\") return true;\n\t\t\treturn !ownership.declaresEntity({\n\t\t\t\tnamespaceId: namespaceIdOf(node.location.schemaName),\n\t\t\t\t...coordinate\n\t\t\t});\n\t\t}\n\t\tconst ddlSchemaName = issueSchemaName(issue);\n\t\tif (ddlSchemaName === void 0) return true;\n\t\treturn !ownership.declaresEntity({\n\t\t\tnamespaceId: namespaceIdOf(ddlSchemaName),\n\t\t\t...coordinate\n\t\t});\n\t});\n}\n/**\n* Refuses each extension this contract declares in a named namespace that another contract space declares in the unbound namespace: an extension is declared once, and the pack that declares it installs it.\n*/\nfunction extensionsDeclaredByPacks(options) {\n\tconst { ownership } = options;\n\tif (ownership === void 0) return [];\n\treturn Object.values(options.contract.storage.namespaces).flatMap((namespace) => namespace.id === UNBOUND_NAMESPACE_ID ? [] : Object.keys(namespace.entries[\"extension\"] ?? {}).filter((name) => ownership.declaresEntity({\n\t\tnamespaceId: UNBOUND_NAMESPACE_ID,\n\t\tentityKind: \"extension\",\n\t\tentityName: name\n\t})).map((name) => ({\n\t\tkind: \"unsupportedOperation\",\n\t\tsummary: `Extension \"${name}\" is declared in namespace \"${namespace.id}\" by this contract, and an extension pack declares it in namespace \"${UNBOUND_PSL_NAMESPACE_NAME}\".`,\n\t\twhy: \"Remove this declaration from the contract; the pack installs the extension.\"\n\t})));\n}\n/**\n* Returns the one namespace node the relational strategy layer probes for\n* live-table existence and reads codec-hook context off — the namespace\n* matching the planner's resolved schema name, or the first namespace when\n* none matches. `undefined` when the tree has no namespaces, so the strategy\n* context uses its empty-schema default.\n*\n* The relational strategies key tables by bare name, so they can only probe one\n* namespace at a time; probing across every namespace at once is future work.\n*\n* Returns the real `PostgresNamespaceSchemaNode` reference rather than a\n* projection: `storageTypePlanCallStrategy` hands this same value to codec\n* `planTypeOperations` hooks as `schema`, and hooks read the Postgres-specific\n* `nativeEnums` field off it (via `PostgresNamespaceSchemaNode.is`) to decide\n* whether a native enum type already exists — a projection that only copies\n* `tables` would silently drop that signal. `StrategyContext.schema`'s\n* declared type (`SqlSchemaIR`, shared with SQLite's flat shape) doesn't\n* capture this, so the return is `blindCast` the same way `namespaceSchemaNodes`\n* in the family's relational walk already treats a namespace node as a\n* structurally-`SqlSchemaIR`-shaped value.\n*/\nfunction relationalNamespaceNode(schema, schemaName) {\n\tconst namespaceNodes = Object.values(schema.namespaces);\n\tconst namespaceNode = namespaceNodes.find((node) => node.schemaName === schemaName) ?? namespaceNodes[0];\n\tif (namespaceNode === void 0) return void 0;\n\treturn blindCast(namespaceNode);\n}\n/**\n* Grades a {@link PolicyReplacement} as one unit against the table's\n* control policy, BEFORE the pair becomes calls or a conflict. This runs\n* ahead of `partitionCallsByControlPolicy`, which later re-grades the\n* surviving calls per-call — a no-op here, since only managed units\n* survive this grading.\n*\n* A replacement is deliberately STRICTER than the shared\n* `callAllowedUnderControlPolicy` rule: `tolerated` permits whole-object\n* creation, but a replacement's create is the second half of a repair of\n* an existing object, not a new object — so ANY non-managed control\n* (external, observed, tolerated) suppresses the whole unit. Drift on an\n* object the plan does not manage is reported, never repaired; the\n* suppression subject names the drifted policy (`rlsPolicy`) so the\n* report says which policy drifted, matching the conflict path's\n* `location.rlsPolicy`.\n*/\nfunction gradePolicyReplacement(replacement, contract, allowedOperationClasses) {\n\tconst subject = resolvePostgresCallControlPolicySubject(replacement.drop, contract);\n\tconst controlPolicy = governingControlPolicy(subject, contract.defaultControlPolicy);\n\tif (controlPolicy !== \"managed\") return {\n\t\tdisposition: \"suppress\",\n\t\trecord: {\n\t\t\tsubject: subject === void 0 ? void 0 : {\n\t\t\t\t...subject,\n\t\t\t\trlsPolicy: replacement.drop.policyName\n\t\t\t},\n\t\t\tpolicy: controlPolicy,\n\t\t\tfactoryName: void 0,\n\t\t\tcreatesNewObject: false\n\t\t}\n\t};\n\tif (!allowedOperationClasses.includes(\"widening\")) return {\n\t\tdisposition: \"conflict\",\n\t\tconflict: conflictForDisallowedCall(replacement.drop, allowedOperationClasses)\n\t};\n\treturn { disposition: \"plan\" };\n}\n/**\n* Rebuilds the `PostgresRlsPolicy` contract entity `CreatePostgresRlsPolicyCall`\n* carries (its `renderTypeScript`/`createRlsPolicy` paths serialize the whole\n* entity, `namespaceId` included). This reconstructs rather than looking the\n* original up in the contract on purpose: the diff node's `namespaceId` is the\n* *resolved DDL schema* (set when the expected tree was built), which is the\n* value the emitted op must carry; the contract-stored entity holds the raw,\n* pre-resolution coordinate, so a lookup would change the migration output.\n*/\nfunction policyNodeToContractPolicy(node) {\n\treturn new PostgresRlsPolicy({\n\t\tnaming: namingOf(node.name, node.prefix),\n\t\ttableName: node.tableName,\n\t\tnamespaceId: node.namespaceId,\n\t\toperation: node.operation,\n\t\troles: [...node.roles],\n\t\tusing: node.using,\n\t\twithCheck: node.withCheck,\n\t\tpermissive: node.permissive\n\t});\n}\n//#endregion\nexport { postgresMarkedRemoval as n, postgresStoredValueCallClasses as r, createPostgresMigrationPlanner as t };\n\n//# sourceMappingURL=planner-xiEt2PZE.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAwBA,SAAS,YAAY,MAAM,WAAW;CACrC,OAAO,UAAU,MAAM,SAAS,KAAK,OAAO,KAAK,MAAM,KAAK,UAAU,IAAI,CAAC;AAC5E;;;;AAIA,SAAS,sBAAsB,OAAO;CACrC,MAAM,EAAE,YAAY,MAAM,IAAI,UAAU,MAAM,2BAA2B;CACzE,MAAM,UAAU,MAAM,SAAS,WAAW,gBAAgB;EACzD,IAAI,cAAc,KAAK,KAAK,uBAAuB,IAAI,OAAO,GAAG,OAAO,CAAC;EACzE,MAAM,UAAU,UAAU,QAAQ;EAClC,OAAO,YAAY,UAAU,CAAC,IAAI,CAAC,IAAI,qBAAqB,YAAY,IAAI,MAAM,SAAS,OAAO,CAAC;CACpG;CACA,MAAM,aAAa,SAAS,eAAe,KAAK,IAAI,CAAC,IAAI,OAAO,cAAc,SAAS,WAAW,QAAQ,sBAAsB,IAAI,GAAG,YAAY,SAAS,YAAY,KAAK,eAAe,KAAK,IAAI,CAAC,IAAI,CAAC,KAAK,UAAU,CAAC,GAAG,sBAAsB,EAAE,CAAC;CACvP,MAAM,UAAU,SAAS,QAAQ,SAAS,WAAW,OAAO,UAAU,OAAO,QAAQ,kBAAkB,MAAM,OAAO,OAAO,GAAG,YAAY,QAAQ,KAAK,OAAO,GAAG,kBAAkB,IAAI,OAAO,OAAO,CAAC,CAAC;CACvM,MAAM,cAAc,SAAS,YAAY,SAAS,OAAO,OAAO,cAAc,GAAG,QAAQ,sBAAsB,MAAM,GAAG,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AAU,wCAAwC,YAAY,MAAM,QAAQ;CAClF,MAAM,gBAAgB,uBAAuB,SAAS,SAAS,oBAAoB;CACnF,IAAI,kBAAkB,WAAW,OAAO;EACvC,aAAa;EACb,QAAQ;GACP,SAAS,YAAY,KAAK,IAAI,KAAK,IAAI;IACtC,GAAG;IACH,WAAW,YAAY,KAAK;GAC7B;GACA,QAAQ;GACR,aAAa,KAAK;GAClB,kBAAkB;EACnB;CACD;CACA,IAAI,CAAC,wBAAwB,SAAS,UAAU,GAAG,OAAO;EACzD,aAAa;EACb,UAAU,0BAA0B,YAAY,MAAM,uBAAuB;CAC9E;CACA,OAAO,EAAE,aAAa,OAAO;AAC9B;;;;;;;;;;AAUA,SAAS,2BAA2B,MAAM;CACzC,OAAO,IAAI,kBAAkB;EAC5B,QAAQ,SAAS,KAAK,MAAM,KAAK,MAAM;EACvC,WAAW,KAAK;EAChB,aAAa,KAAK;EAClB,WAAW,KAAK;EAChB,OAAO,CAAC,GAAG,KAAK,KAAK;EACrB,OAAO,KAAK;EACZ,WAAW,KAAK;EAChB,YAAY,KAAK;CAClB,CAAC;AACF"}
@@ -5,7 +5,7 @@ import { r as createPostgresBuiltinCodecLookup } from "./codec-registry-7LHPD8C1
5
5
  import { a as assertFullTextIndexes } from "./full-text-index-definition-MfjtL-x7-ImaTAFMs.mjs";
6
6
  import { b as roleEntityKind, g as policyEntityKind, h as nativeEnumEntityKind, p as extensionEntityKind, u as PostgresSchema, y as rlsEnablementEntityKind } from "./postgres-schema-BBWgs4fX-DWdYxNi8.mjs";
7
7
  import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-DeZiroEE-BACV_wuh.mjs";
8
- import { n as postgresAuthoringEntityTypes } from "./authoring-BPha5ZXb-DDzFeAur.mjs";
8
+ import { n as postgresAuthoringEntityTypes } from "./authoring-BD4uEpBM-DIJiGq4e.mjs";
9
9
  import { requiredSchemaKeys } from "@prisma/orm-framework/components/codec";
10
10
  import { blindCast } from "@prisma/orm-framework/utils/casts";
11
11
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
@@ -15,7 +15,7 @@ import { buildSqlSchemaQualifiedView } from "@prisma/orm-family-sql/contract/con
15
15
  import { createPreserveEmptyPredicate } from "@prisma/orm-framework/contract/hashing-utils";
16
16
  import { SqlContractSerializerBase } from "@prisma/orm-family-sql/family/ir";
17
17
  import { sqlContractCanonicalizationHooks } from "@prisma/orm-family-sql/contract/canonicalization-hooks";
18
- //#region ../../../3-targets/postgres/1-target/dist/postgres-contract-view-BAuuUjGY.mjs
18
+ //#region ../../../3-targets/postgres/1-target/dist/postgres-contract-view-yDfay91x.mjs
19
19
  const POSTGRES_CODEC_LOOKUP = createPostgresBuiltinCodecLookup();
20
20
  /** The context entity hydration runs in. Hydration reads stored contract JSON and never a written value, so its data types carry no authoring entries, which keeps the PSL readers out of the runtime. */
21
21
  const POSTGRES_AUTHORING_CTX = {
@@ -180,4 +180,4 @@ const PostgresContractView = {
180
180
  //#endregion
181
181
  export { PostgresContractView as n, PostgresContractSerializer as t };
182
182
 
183
- //# sourceMappingURL=postgres-contract-view-BAuuUjGY-1XcthN9K.mjs.map
183
+ //# sourceMappingURL=postgres-contract-view-yDfay91x-BBinYMBq.mjs.map