@prisma/orm-target-postgres 8.0.0-rc.18-dev.32 → 8.0.0-rc.18-dev.34

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 (152) hide show
  1. package/dist/{adapter-BLduF4bR-LPL0DsEe.mjs → adapter-BLduF4bR-DVxOjMW1.mjs} +5 -5
  2. package/dist/{adapter-BLduF4bR-LPL0DsEe.mjs.map → adapter-BLduF4bR-DVxOjMW1.mjs.map} +1 -1
  3. package/dist/{adapter-BAR5FNt5.d.mts → adapter-D_h3CcXJ.d.mts} +10 -10
  4. package/dist/{adapter-BAR5FNt5.d.mts.map → adapter-D_h3CcXJ.d.mts.map} +1 -1
  5. package/dist/adapter.d.mts +7 -7
  6. package/dist/adapter.mjs +4 -4
  7. package/dist/adapter__adapter.d.mts +1 -1
  8. package/dist/adapter__adapter.mjs +2 -2
  9. package/dist/adapter__control.d.mts +2 -2
  10. package/dist/adapter__control.mjs +4 -4
  11. package/dist/adapter__runtime.d.mts +1 -1
  12. package/dist/adapter__runtime.mjs +4 -4
  13. package/dist/adapter__sql-renderer.d.mts +1 -1
  14. package/dist/adapter__sql-renderer.mjs +1 -1
  15. package/dist/adapter__types.d.mts +3 -3
  16. package/dist/{aggregates-B3lIBjGK.d.mts → aggregates-C2xqsGZ2.d.mts} +8 -8
  17. package/dist/{aggregates-B3lIBjGK.d.mts.map → aggregates-C2xqsGZ2.d.mts.map} +1 -1
  18. package/dist/{authoring-CArQ0ZSb-BXqyKMTu.mjs → authoring-CYmxS94I-rwTYrwpM.mjs} +4 -4
  19. package/dist/{authoring-CArQ0ZSb-BXqyKMTu.mjs.map → authoring-CYmxS94I-rwTYrwpM.mjs.map} +1 -1
  20. package/dist/{autoincrement-widths-BeDdQuMU-CFDf2ypW.mjs → autoincrement-widths-hljSfPZk-C-izNyPe.mjs} +3 -3
  21. package/dist/{autoincrement-widths-BeDdQuMU-CFDf2ypW.mjs.map → autoincrement-widths-hljSfPZk-C-izNyPe.mjs.map} +1 -1
  22. package/dist/codec-descriptor-CzyUKm6m.d.mts +1 -0
  23. package/dist/{codec-descriptor-Cbz5bbma-dxeoAwS2.d.mts → codec-descriptor-d1ByNBEk-ClDTxfu9.d.mts} +5 -2
  24. package/dist/codec-descriptor-d1ByNBEk-ClDTxfu9.d.mts.map +1 -0
  25. package/dist/{codec-descriptor-DSMjoW72-ZoCcTHLX.mjs → codec-descriptor-hKN22hwP-BypvXBN8.mjs} +5 -4
  26. package/dist/codec-descriptor-hKN22hwP-BypvXBN8.mjs.map +1 -0
  27. package/dist/{codec-registry-C8ymMRsH-B48NRqXL.mjs → codec-registry-EFFhQhEM-DANMHp-D.mjs} +5 -5
  28. package/dist/{codec-registry-C8ymMRsH-B48NRqXL.mjs.map → codec-registry-EFFhQhEM-DANMHp-D.mjs.map} +1 -1
  29. package/dist/{codec-type-map-DiWClTtc-CUWQbVA0.d.mts → codec-type-map-Fj5xCgwT-DwIK_DR3.d.mts} +4 -4
  30. package/dist/{codec-type-map-DiWClTtc-CUWQbVA0.d.mts.map → codec-type-map-Fj5xCgwT-DwIK_DR3.d.mts.map} +1 -1
  31. package/dist/codec-types-CVyCyOV-.d.mts +2 -0
  32. package/dist/{codec-types-yRnVORmz-C5oISm2L.d.mts → codec-types-Ct_4iTVc-4VoGpl4J.d.mts} +4 -4
  33. package/dist/{codec-types-yRnVORmz-C5oISm2L.d.mts.map → codec-types-Ct_4iTVc-4VoGpl4J.d.mts.map} +1 -1
  34. package/dist/{codecs-DgslvOOU-eZpfm_fU.d.mts → codecs-CADK7dCR-Cku8S_Im.d.mts} +15 -4
  35. package/dist/codecs-CADK7dCR-Cku8S_Im.d.mts.map +1 -0
  36. package/dist/{codecs-DydRFxCt.d.mts → codecs-DEMQ3cMm.d.mts} +3 -3
  37. package/dist/{codecs-DydRFxCt.d.mts.map → codecs-DEMQ3cMm.d.mts.map} +1 -1
  38. package/dist/{codecs-DNjF5kIh-BkybYk_D.mjs → codecs-DGvwfB1h-BYcObjvV.mjs} +34 -17
  39. package/dist/codecs-DGvwfB1h-BYcObjvV.mjs.map +1 -0
  40. package/dist/{contract-contributions-CRCEK7Dx-Dx2tYlyZ.mjs → contract-contributions-CRCEK7Dx-B0F06bbX.mjs} +6 -6
  41. package/dist/{contract-contributions-CRCEK7Dx-Dx2tYlyZ.mjs.map → contract-contributions-CRCEK7Dx-B0F06bbX.mjs.map} +1 -1
  42. package/dist/{control-R69irs57.d.mts → control-kRer3n4t.d.mts} +2 -2
  43. package/dist/{control-R69irs57.d.mts.map → control-kRer3n4t.d.mts.map} +1 -1
  44. package/dist/{control-policy-B10lrdMt-CHUsNZat.mjs → control-policy-CifihRKs-B5UzQAd1.mjs} +9 -9
  45. package/dist/{control-policy-B10lrdMt-CHUsNZat.mjs.map → control-policy-CifihRKs-B5UzQAd1.mjs.map} +1 -1
  46. package/dist/{data-type-entries-EroSxeag-Ba-K5snn.mjs → data-type-entries-DGSg_Rid-BFK5ZVA0.mjs} +3 -3
  47. package/dist/{data-type-entries-EroSxeag-Ba-K5snn.mjs.map → data-type-entries-DGSg_Rid-BFK5ZVA0.mjs.map} +1 -1
  48. package/dist/{data-types-DhBM9bIL-CVDQGAGw.mjs → data-types-BAbkwTt9-C9WMEFNT.mjs} +14 -4
  49. package/dist/data-types-BAbkwTt9-C9WMEFNT.mjs.map +1 -0
  50. package/dist/{data-types-BTUMiCZS.d.mts → data-types-BWxZXp8N.d.mts} +4 -2
  51. package/dist/{data-types-BTUMiCZS.d.mts.map → data-types-BWxZXp8N.d.mts.map} +1 -1
  52. package/dist/{descriptor-meta-9qCQPbrI-DFEFmwBv.mjs → descriptor-meta-BZczsKUL-L5NrK7J6.mjs} +6 -6
  53. package/dist/{descriptor-meta-9qCQPbrI-DFEFmwBv.mjs.map → descriptor-meta-BZczsKUL-L5NrK7J6.mjs.map} +1 -1
  54. package/dist/{descriptor-meta-Cb7RcgEQ-CwwQ6QE8.mjs → descriptor-meta-Cb7RcgEQ-DqOiqB2V.mjs} +3 -3
  55. package/dist/{descriptor-meta-Cb7RcgEQ-CwwQ6QE8.mjs.map → descriptor-meta-Cb7RcgEQ-DqOiqB2V.mjs.map} +1 -1
  56. package/dist/{descriptor-meta-runtime-C56qYaOz-hfOBfhVz.mjs → descriptor-meta-runtime-DOxAmbAO-Gv2ogkOw.mjs} +3 -3
  57. package/dist/{descriptor-meta-runtime-C56qYaOz-hfOBfhVz.mjs.map → descriptor-meta-runtime-DOxAmbAO-Gv2ogkOw.mjs.map} +1 -1
  58. package/dist/{diff-database-schema-CmWmomi3-PoUser3Y.mjs → diff-database-schema-BHkYz_Ll-DGSW_oEV.mjs} +3 -3
  59. package/dist/{diff-database-schema-CmWmomi3-PoUser3Y.mjs.map → diff-database-schema-BHkYz_Ll-DGSW_oEV.mjs.map} +1 -1
  60. package/dist/{full-text-collection-method-DWbpg-Ep-DDs6t_BB.d.mts → full-text-collection-method-BFd2u2cs-DcN_Vf7f.d.mts} +4 -4
  61. package/dist/full-text-collection-method-BFd2u2cs-DcN_Vf7f.d.mts.map +1 -0
  62. package/dist/{full-text-OgRqBeQu.d.mts → full-text-r2wMygYZ.d.mts} +3 -3
  63. package/dist/{full-text-OgRqBeQu.d.mts.map → full-text-r2wMygYZ.d.mts.map} +1 -1
  64. package/dist/migration-CbOh59ZJ.mjs.map +1 -1
  65. package/dist/{native-type-normalizer-eX3KyHPA.mjs → native-type-normalizer-BR69E8QO.mjs} +2 -2
  66. package/dist/{native-type-normalizer-eX3KyHPA.mjs.map → native-type-normalizer-BR69E8QO.mjs.map} +1 -1
  67. package/dist/{op-factory-call-35RJQ1ME-BFxUakDe.mjs → op-factory-call-BfPsfi0_-DoCb1VbU.mjs} +5 -5
  68. package/dist/{op-factory-call-35RJQ1ME-BFxUakDe.mjs.map → op-factory-call-BfPsfi0_-DoCb1VbU.mjs.map} +1 -1
  69. package/dist/{operation-types-RXpAlUCj-9eC1wX5R.d.mts → operation-types--Wa_cv45-jn5HQ8yt.d.mts} +3 -3
  70. package/dist/{operation-types-RXpAlUCj-9eC1wX5R.d.mts.map → operation-types--Wa_cv45-jn5HQ8yt.d.mts.map} +1 -1
  71. package/dist/operation-types-BcOviE0b.d.mts +1 -0
  72. package/dist/{pack-XQaG7LAo.d.mts → pack-CZxVGiB2.d.mts} +5 -5
  73. package/dist/{pack-XQaG7LAo.d.mts.map → pack-CZxVGiB2.d.mts.map} +1 -1
  74. package/dist/{planner-olDFDn2v-Bh0e16rN.mjs → planner-DzVQXz7j-Ca88BDTV.mjs} +7 -7
  75. package/dist/{planner-olDFDn2v-Bh0e16rN.mjs.map → planner-DzVQXz7j-Ca88BDTV.mjs.map} +1 -1
  76. package/dist/{planner-ddl-builders-DujKuwcn-C0VYScBe.mjs → planner-ddl-builders-D_jr2HYG-BWETLCaT.mjs} +3 -3
  77. package/dist/{planner-ddl-builders-DujKuwcn-C0VYScBe.mjs.map → planner-ddl-builders-D_jr2HYG-BWETLCaT.mjs.map} +1 -1
  78. package/dist/{planner-identity-values-Vbk2SkMl-8xDzcTpo.mjs → planner-identity-values-CQXJs34b-BA_lpHh7.mjs} +3 -3
  79. package/dist/{planner-identity-values-Vbk2SkMl-8xDzcTpo.mjs.map → planner-identity-values-CQXJs34b-BA_lpHh7.mjs.map} +1 -1
  80. package/dist/{planner-produced-postgres-migration-BVsfYarL-C9BdUXeX.mjs → planner-produced-postgres-migration-BwMf2I5x-B5c5QXkf.mjs} +4 -4
  81. package/dist/{planner-produced-postgres-migration-BVsfYarL-C9BdUXeX.mjs.map → planner-produced-postgres-migration-BwMf2I5x-B5c5QXkf.mjs.map} +1 -1
  82. package/dist/{planner-sql-checks-BluJBZmQ-ClqyqOhD.mjs → planner-sql-checks-CiJuuHxl-2xZ6yNhV.mjs} +3 -3
  83. package/dist/{planner-sql-checks-BluJBZmQ-ClqyqOhD.mjs.map → planner-sql-checks-CiJuuHxl-2xZ6yNhV.mjs.map} +1 -1
  84. package/dist/{postgres-codec-traits-DM3rkou1-AyAbELmA.mjs → postgres-codec-traits-DVEB3LKn-Cbe9TlTB.mjs} +3 -3
  85. package/dist/{postgres-codec-traits-DM3rkou1-AyAbELmA.mjs.map → postgres-codec-traits-DVEB3LKn-Cbe9TlTB.mjs.map} +1 -1
  86. package/dist/{postgres-contract-view-xyfQHZ29-HOrk9af1.mjs → postgres-contract-view-dWC-xWeo-GesLqxrx.mjs} +7 -7
  87. package/dist/{postgres-contract-view-xyfQHZ29-HOrk9af1.mjs.map → postgres-contract-view-dWC-xWeo-GesLqxrx.mjs.map} +1 -1
  88. package/dist/{postgres-migration-fZk6Dmud-BjRqdGdm.mjs → postgres-migration-B6Jwrg_c-BhLHpVep.mjs} +8 -8
  89. package/dist/{postgres-migration-fZk6Dmud-BjRqdGdm.mjs.map → postgres-migration-B6Jwrg_c-BhLHpVep.mjs.map} +1 -1
  90. package/dist/{prisma7-binding-Dfb3osBy.mjs → prisma7-binding-D4x9fi9T.mjs} +7 -7
  91. package/dist/{prisma7-binding-Dfb3osBy.mjs.map → prisma7-binding-D4x9fi9T.mjs.map} +1 -1
  92. package/dist/{prisma7-binding-ChOxdhPc.d.mts → prisma7-binding-DYLmYZT3.d.mts} +5 -5
  93. package/dist/{prisma7-binding-ChOxdhPc.d.mts.map → prisma7-binding-DYLmYZT3.d.mts.map} +1 -1
  94. package/dist/{render-ops-DkBRaS0Z-BtGb58iC.mjs → render-ops-BdvroD9D-DkcqXKDU.mjs} +3 -3
  95. package/dist/{render-ops-DkBRaS0Z-BtGb58iC.mjs.map → render-ops-BdvroD9D-DkcqXKDU.mjs.map} +1 -1
  96. package/dist/{runtime-ONyptFAN.d.mts → runtime-CQckFo7G.d.mts} +2 -2
  97. package/dist/{runtime-ONyptFAN.d.mts.map → runtime-CQckFo7G.d.mts.map} +1 -1
  98. package/dist/{runtime-CXQ7Xh-G.d.mts → runtime-XXYjt_3Q.d.mts} +2 -2
  99. package/dist/{runtime-CXQ7Xh-G.d.mts.map → runtime-XXYjt_3Q.d.mts.map} +1 -1
  100. package/dist/{sql-renderer-BdWJPa5F-DqJ5nUgt.mjs → sql-renderer-BdWJPa5F-DagaSmU3.mjs} +3 -3
  101. package/dist/{sql-renderer-BdWJPa5F-DqJ5nUgt.mjs.map → sql-renderer-BdWJPa5F-DagaSmU3.mjs.map} +1 -1
  102. package/dist/{sql-renderer-dk7d0cK0.d.mts → sql-renderer-CGc-Ln4u.d.mts} +4 -4
  103. package/dist/{sql-renderer-dk7d0cK0.d.mts.map → sql-renderer-CGc-Ln4u.d.mts.map} +1 -1
  104. package/dist/target.d.mts +16 -16
  105. package/dist/target.mjs +22 -22
  106. package/dist/target__aggregates.d.mts +1 -1
  107. package/dist/target__codec-descriptor.d.mts +2 -2
  108. package/dist/target__codec-descriptor.mjs +1 -1
  109. package/dist/target__codec-types.d.mts +3 -3
  110. package/dist/target__codecs.d.mts +2 -2
  111. package/dist/target__codecs.mjs +2 -2
  112. package/dist/target__control.mjs +46 -37
  113. package/dist/target__control.mjs.map +1 -1
  114. package/dist/target__data-types.d.mts +2 -2
  115. package/dist/target__data-types.mjs +3 -3
  116. package/dist/target__diff-database-schema.mjs +1 -1
  117. package/dist/target__full-text-index-authoring.mjs +1 -1
  118. package/dist/target__full-text.d.mts +3 -3
  119. package/dist/target__issue-planner.mjs +1 -1
  120. package/dist/target__migration.mjs +2 -2
  121. package/dist/target__native-type-normalizer.mjs +1 -1
  122. package/dist/target__op-factory-call.mjs +1 -1
  123. package/dist/target__operation-types.d.mts +2 -2
  124. package/dist/target__pack.d.mts +2 -2
  125. package/dist/target__pack.mjs +1 -1
  126. package/dist/target__planner-ddl-builders.mjs +1 -1
  127. package/dist/target__planner-identity-values.mjs +1 -1
  128. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  129. package/dist/target__planner-sql-checks.mjs +1 -1
  130. package/dist/target__planner.mjs +2 -2
  131. package/dist/target__prisma7-binding.d.mts +1 -1
  132. package/dist/target__prisma7-binding.mjs +1 -1
  133. package/dist/target__render-ops.mjs +1 -1
  134. package/dist/target__runtime.d.mts +2 -2
  135. package/dist/target__runtime.mjs +4 -4
  136. package/dist/target__runtime.mjs.map +1 -1
  137. package/dist/{type-constructors-DQ7O80xT-DdTGyTSt.mjs → type-constructors-CNT0Zq7_-D8W003jr.mjs} +7 -7
  138. package/dist/{type-constructors-DQ7O80xT-DdTGyTSt.mjs.map → type-constructors-CNT0Zq7_-D8W003jr.mjs.map} +1 -1
  139. package/dist/{types-D6lgKhE5-CjLf9QtO.d.mts → types-D6lgKhE5-Fxmh_bQa.d.mts} +3 -3
  140. package/dist/{types-D6lgKhE5-CjLf9QtO.d.mts.map → types-D6lgKhE5-Fxmh_bQa.d.mts.map} +1 -1
  141. package/dist/types-DwVVpdFJ.d.mts +2 -0
  142. package/package.json +9 -9
  143. package/dist/codec-descriptor-BlMs1rkg.d.mts +0 -1
  144. package/dist/codec-descriptor-Cbz5bbma-dxeoAwS2.d.mts.map +0 -1
  145. package/dist/codec-descriptor-DSMjoW72-ZoCcTHLX.mjs.map +0 -1
  146. package/dist/codec-types-CXL3_pbl.d.mts +0 -2
  147. package/dist/codecs-DNjF5kIh-BkybYk_D.mjs.map +0 -1
  148. package/dist/codecs-DgslvOOU-eZpfm_fU.d.mts.map +0 -1
  149. package/dist/data-types-DhBM9bIL-CVDQGAGw.mjs.map +0 -1
  150. package/dist/full-text-collection-method-DWbpg-Ep-DDs6t_BB.d.mts.map +0 -1
  151. package/dist/operation-types-DeGKVV0-.d.mts +0 -1
  152. package/dist/types-BA-ghQ5q.d.mts +0 -2
package/dist/target.mjs CHANGED
@@ -1,46 +1,46 @@
1
1
  import { A as PG_TIME_TEMPORAL_CODEC_ID, B as SQL_TEXT_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, I as SQL_CHAR_CODEC_ID, L as SQL_FLOAT_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, N as PG_UUID_CODEC_ID, O as PG_TIMETZ_CODEC_ID, P as PG_VARBIT_CODEC_ID, R as SQL_INT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, V as SQL_VARCHAR_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, i as PG_CHAR_CODEC_ID, j as PG_TSQUERY_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_ENUM_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_FLOAT_CODEC_ID, v as PG_JSONB_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID, y as PG_JSON_CODEC_ID, z as SQL_RAW_CODEC_ID } from "./codec-ids-BMhEpFwv-BLIC4g3Y.mjs";
2
2
  import { t as postgresAggregateDescriptors } from "./aggregates-C7KEByGU.mjs";
3
- import { a as postgresCodec, i as isPostgresCodecDescriptor, n as buildPostgresCodecDescriptorRegistry, r as definePostgresCodecs, t as PostgresCodecDescriptor } from "./codec-descriptor-DSMjoW72-ZoCcTHLX.mjs";
3
+ import { a as postgresCodec, i as isPostgresCodecDescriptor, n as buildPostgresCodecDescriptorRegistry, r as definePostgresCodecs, t as PostgresCodecDescriptor } from "./codec-descriptor-hKN22hwP-BypvXBN8.mjs";
4
4
  import { c as postgresError, t as errorPostgresMigrationStackMissing } from "./errors-BrhQYgdL-D_lIrddD.mjs";
5
5
  import { a as quoteQualifiedName, i as quoteIdentifier, n as escapeLiteral, o as validateEnumValueLength, r as qualifyName } from "./sql-utils-Bnw3JbWf-zvWDkyrr.mjs";
6
- import { A as pgJsonb, B as pgTimestamptz, C as pgInet, D as pgInterval, E as pgInt8, F as pgTextArray, G as pgUuid, H as pgTimetz, I as pgTime, J as postgresDataTypes, K as pgVarbit, L as pgTimeStoredText, M as pgNumericParams, N as pgPrecisionParams, P as pgText, R as pgTimestamp, S as pgFloat8, T as pgInt4, U as pgTimetzStoredText, V as pgTimestamptzStoredText, W as pgTsquery, Z as qualifiedEnumName, _ as pgDate, b as pgEnumParams, d as pgBool, f as pgBytea, g as pgCharacterLengthParams, h as pgChar, i as createPostgresBuiltinDataTypeLookup, j as pgNumeric, k as pgJson, l as pgBit, q as pgVarchar, u as pgBitLengthParams, v as pgDateStoredText, w as pgInt2, x as pgFloat4, y as pgEnum, z as pgTimestampStoredText } from "./data-types-DhBM9bIL-CVDQGAGw.mjs";
6
+ import { A as pgJsonb, B as pgTimestampStoredText, C as pgInet, D as pgInterval, E as pgInt8, F as pgText, G as pgTsquery, H as pgTimestamptzStoredText, I as pgTextArray, J as pgVarchar, K as pgUuid, L as pgTime, M as pgNumeric, N as pgNumericParams, P as pgPrecisionParams, Q as qualifiedEnumName, R as pgTimeStoredText, S as pgFloat8, T as pgInt4, U as pgTimetz, V as pgTimestamptz, W as pgTimetzStoredText, Y as postgresDataTypes, _ as pgDate, b as pgEnumParams, d as pgBool, f as pgBytea, g as pgCharacterLengthParams, h as pgChar, i as createPostgresBuiltinDataTypeLookup, j as pgJsonbEnumRefusal, k as pgJson, l as pgBit, q as pgVarbit, u as pgBitLengthParams, v as pgDateStoredText, w as pgInt2, x as pgFloat4, y as pgEnum, z as pgTimestamp } from "./data-types-BAbkwTt9-C9WMEFNT.mjs";
7
7
  import { t as PostgresNativeEnum } from "./postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs";
8
- import { A as pgVarbitColumn, C as pgNumericColumn, D as pgTimetzColumn, E as pgTimestamptzDateDescriptor, O as pgUnboundedIntColumn, S as pgJsonbColumn, T as pgTimestamptzDateColumn, _ as pgInt8Column, a as isPgEnumParams, b as pgIntervalColumn, c as pgBoolColumn, d as pgFloat4Column, f as pgFloat8Column, g as pgInt4Column, h as pgInt2Column, i as decodePostgresListText, j as pgVarcharColumn, k as pgUuidColumn, l as pgCharColumn, m as pgInetColumn, n as PgTimestamptzDateDescriptor, o as parsePostgresListText, p as pgFloatColumn, s as pgBitColumn, t as PgTimestamptzDateCodec, u as pgEnumDescriptor, v as pgInt8NumberColumn, w as pgTextColumn, x as pgJsonColumn, y as pgIntColumn } from "./codecs-DNjF5kIh-BkybYk_D.mjs";
9
- import { a as postgresCodecDescriptorRegistry, i as createPostgresCodecRegistryWithBuiltins, n as assemblePostgresCodecRegistryWithBuiltins, o as postgresCodecRegistry, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-C8ymMRsH-B48NRqXL.mjs";
8
+ import { A as pgVarbitColumn, C as pgNumericColumn, D as pgTimetzColumn, E as pgTimestamptzDateDescriptor, O as pgUnboundedIntColumn, S as pgJsonbColumn, T as pgTimestamptzDateColumn, _ as pgInt8Column, a as isPgEnumParams, b as pgIntervalColumn, c as pgBoolColumn, d as pgFloat4Column, f as pgFloat8Column, g as pgInt4Column, h as pgInt2Column, i as decodePostgresListText, j as pgVarcharColumn, k as pgUuidColumn, l as pgCharColumn, m as pgInetColumn, n as PgTimestamptzDateDescriptor, o as parsePostgresListText, p as pgFloatColumn, s as pgBitColumn, t as PgTimestamptzDateCodec, u as pgEnumDescriptor, v as pgInt8NumberColumn, w as pgTextColumn, x as pgJsonColumn, y as pgIntColumn } from "./codecs-DGvwfB1h-BYcObjvV.mjs";
9
+ import { a as postgresCodecDescriptorRegistry, i as createPostgresCodecRegistryWithBuiltins, n as assemblePostgresCodecRegistryWithBuiltins, o as postgresCodecRegistry, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-EFFhQhEM-DANMHp-D.mjs";
10
10
  import { f as weightGroupsOf, l as fullTextIndexProblems, n as FULL_TEXT_INDEX_TYPE, o as describeFullTextIndexProblem, t as DEFAULT_FULL_TEXT_SEARCH_LANGUAGE } from "./full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs";
11
11
  import { c as PostgresSchema, d as isPostgresSchema, h as postgresCreateNamespace, i as PostgresRlsPolicy, l as PostgresTableSource, m as policyInputFromSerialized, n as PostgresRlsEnablement, o as PostgresRole, u as PostgresUnboundSchema } from "./postgres-schema-C6w1rzOF-bzaF5PIS.mjs";
12
12
  import { _ as PostgresDropType, a as PostgresAlterIndexRename, c as PostgresCreateIndex, d as PostgresCreateTable, f as PostgresCreateType, g as PostgresDropPolicy, h as PostgresDropIndex, i as DropDefaultAction, l as PostgresCreatePolicy, m as PostgresDisableRowLevelSecurity, n as AddConstraintAction, o as PostgresAlterPolicyRename, p as PostgresDdlNode, r as AlterColumnTypeAction, s as PostgresAlterTable, t as AddColumnAction, u as PostgresCreateSchema } from "./nodes-BYKl6zt_-BoUacQ_3.mjs";
13
13
  import { B as tablePrimaryKeyAst, E as extensionExistsAst, F as rlsPolicyExistsAst, I as sequenceNameAvailableAst, N as rlsEnabledAst, O as indexExistsAst, R as tableExistsAst, S as dropDefaultAction, V as toRegclass, c as columnDefaultSequenceAst, f as columnTypeAst, h as constraintExistsAst, j as noNullValuesAst, l as columnExistsAst, n as addConstraintAction, o as alterTable, r as alterColumnTypeAction, s as columnDefaultAst, t as addColumnAction, u as columnNullabilityAst, v as createSchema, y as createTable, z as tableIsEmptyAst } from "./ddl-BrIDeRCe-ojLIc02T.mjs";
14
14
  import { a as jsonb, c as textArray, i as int8, l as timestamptz, n as buildSignMarkerBootstrapQueries, o as pgTable, r as int4, s as text, t as buildControlTableBootstrapQueries, u as timestamptzJsDate } from "./contract-free-CN4hGOBI.mjs";
15
- import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-DM3rkou1-AyAbELmA.mjs";
15
+ import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-DVEB3LKn-Cbe9TlTB.mjs";
16
16
  import { i as policyRoleList, n as POLICY_OPERATION_PREDICATES, r as computeContentHash, t as POLICY_COMMAND_SQL } from "./canonicalize-RdxoUHao-DK_M6HU-.mjs";
17
- import { c as postgresNowGeneratorControlDescriptors, u as postgresNowGenerators } from "./authoring-CArQ0ZSb-BXqyKMTu.mjs";
17
+ import { c as postgresNowGeneratorControlDescriptors, u as postgresNowGenerators } from "./authoring-CYmxS94I-rwTYrwpM.mjs";
18
18
  import { t as postgresRenderCheckExpressions } from "./check-expressions-7uCCP01t-WtUqfqkP.mjs";
19
- import { t as postgresDataTypeEntries } from "./data-type-entries-EroSxeag-Ba-K5snn.mjs";
19
+ import { t as postgresDataTypeEntries } from "./data-type-entries-DGSg_Rid-BFK5ZVA0.mjs";
20
20
  import { n as PostgresSchemaNodeKind, r as PostgresTableSchemaNode, t as PostgresNativeEnumSchemaNode } from "./postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs";
21
21
  import { i as PostgresRoleSchemaNode, n as PostgresNamespaceSchemaNode, r as PostgresPolicySchemaNode, t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs";
22
22
  import { n as readPostgresDefault, t as postgresResolveDefault } from "./default-normalizer-BqK6XxdC-BAgxt9FF.mjs";
23
23
  import { n as renderFullTextIndexDocument } from "./full-text-search-document-Doy5TF7c-DezgYsP-.mjs";
24
24
  import { r as resolveDdlSchemaForNamespaceStorage } from "./resolve-ddl-schema-D3VNPMSm-DVuswLch.mjs";
25
- import { a as stackDataTypes, i as qualifyTableName, t as alterTypeCheck } from "./planner-sql-checks-BluJBZmQ-ClqyqOhD.mjs";
26
- import { A as RenameConstraintCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetNotNullCall, M as RenamePostgresRlsPolicyCall, N as RenameTableCall, O as RawSqlCall, P as SetDefaultCall, R as createExtension, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameIndexCall, k as RenameColumnCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-35RJQ1ME-BFxUakDe.mjs";
27
- import { t as buildColumnTypeSql } from "./planner-ddl-builders-DujKuwcn-C0VYScBe.mjs";
28
- import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-Vbk2SkMl-8xDzcTpo.mjs";
29
- import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-B10lrdMt-CHUsNZat.mjs";
30
- import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-CmWmomi3-PoUser3Y.mjs";
31
- import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-xyfQHZ29-HOrk9af1.mjs";
25
+ import { a as stackDataTypes, i as qualifyTableName, t as alterTypeCheck } from "./planner-sql-checks-CiJuuHxl-2xZ6yNhV.mjs";
26
+ import { A as RenameConstraintCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetNotNullCall, M as RenamePostgresRlsPolicyCall, N as RenameTableCall, O as RawSqlCall, P as SetDefaultCall, R as createExtension, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameIndexCall, k as RenameColumnCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-BfPsfi0_-DoCb1VbU.mjs";
27
+ import { t as buildColumnTypeSql } from "./planner-ddl-builders-D_jr2HYG-BWETLCaT.mjs";
28
+ import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-CQXJs34b-BA_lpHh7.mjs";
29
+ import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-CifihRKs-B5UzQAd1.mjs";
30
+ import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-BHkYz_Ll-DGSW_oEV.mjs";
31
+ import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-dWC-xWeo-GesLqxrx.mjs";
32
32
  import { t as dataTransform } from "./data-transform-CtHnNYhF-r19375h3.mjs";
33
- import { t as PostgresMigration } from "./postgres-migration-fZk6Dmud-BjRqdGdm.mjs";
34
- import { t as renderOps } from "./render-ops-DkBRaS0Z-BtGb58iC.mjs";
33
+ import { t as PostgresMigration } from "./postgres-migration-B6Jwrg_c-BhLHpVep.mjs";
34
+ import { t as renderOps } from "./render-ops-BdvroD9D-DkcqXKDU.mjs";
35
35
  import { t as renderCallsToTypeScript } from "./render-typescript-Dqp1Spgn-B128r1qw.mjs";
36
- import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-BVsfYarL-C9BdUXeX.mjs";
37
- import { t as createPostgresMigrationPlanner } from "./planner-olDFDn2v-Bh0e16rN.mjs";
36
+ import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-BwMf2I5x-B5c5QXkf.mjs";
37
+ import { t as createPostgresMigrationPlanner } from "./planner-DzVQXz7j-Ca88BDTV.mjs";
38
38
  import { n as MARKER_LOCK_SQL, t as MARKER_LOCK_KEY } from "./marker-lock-DFc1Tfv5-QMJSzMIa.mjs";
39
- import { _ as postgresNativeAuthoringTypes, v as postgresPslTypeConstructors, y as postgresScalarAuthoringTypes } from "./type-constructors-DQ7O80xT-DdTGyTSt.mjs";
39
+ import { _ as postgresNativeAuthoringTypes, v as postgresPslTypeConstructors, y as postgresScalarAuthoringTypes } from "./type-constructors-CNT0Zq7_-D8W003jr.mjs";
40
40
  import { c as toTsquery, l as websearchToTsquery, n as fullTextDocument, o as phrasetoTsquery, s as plaintoTsquery, t as FullTextDocument } from "./full-text-parsers-CFFxiOrp-BmiwdZ21.mjs";
41
41
  import { t as tsquery } from "./full-text-8PmilGkW.mjs";
42
42
  import { a as foreignKey, c as primaryKey, d as unique, i as fn, l as rawSql, n as checkExpression, o as lit, r as col, s as placeholder, t as MigrationCLI, u as sql } from "./migration-CbOh59ZJ.mjs";
43
- import { t as introspectedTypeText } from "./native-type-normalizer-eX3KyHPA.mjs";
43
+ import { t as introspectedTypeText } from "./native-type-normalizer-BR69E8QO.mjs";
44
44
  import { i as hasUniqueConstraint, n as hasForeignKey, r as hasIndex, t as buildSchemaLookupMap } from "./planner-schema-lookup-CdgWer9s.mjs";
45
- import { t as prisma7PostgresBinding } from "./prisma7-binding-Dfb3osBy.mjs";
46
- export { AddCheckConstraintCall, AddColumnAction, AddColumnCall, AddColumnWithTemporaryDefaultCall, AddConstraintAction, AddForeignKeyCall, AddNativeEnumValueCall, AddPrimaryKeyCall, AddRequiredColumnToEmptyTableCall, AddUniqueCall, AlterColumnTypeAction, AlterColumnTypeCall, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, DataTransformCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultAction, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, FULL_TEXT_INDEX_TYPE, FullTextDocument, MARKER_LOCK_KEY, MARKER_LOCK_SQL, PostgresMigration as Migration, MigrationCLI, PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_TSQUERY_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, POLICY_COMMAND_SQL, POLICY_OPERATION_PREDICATES, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterTable, PostgresCodecDescriptor, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, PostgresDdlNode, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropType, PostgresNamespaceSchemaNode, PostgresNativeEnum, PostgresNativeEnumSchemaNode, PostgresPolicySchemaNode, PostgresRlsEnablement, PostgresRlsPolicy, PostgresRole, PostgresRoleSchemaNode, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, PostgresTableSource, PostgresUnboundSchema, RawSqlCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameTableCall, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SetDefaultCall, SetNotNullCall, TypeScriptRenderablePostgresMigration, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, alterTypeCheck, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, buildBuiltinIdentityValue, buildColumnTypeSql, buildControlTableBootstrapQueries, buildPostgresCodecDescriptorRegistry, buildPostgresPlanDiff, buildSchemaLookupMap, buildSignMarkerBootstrapQueries, checkExpression, coalesceSubtreeIssues, col, columnDefaultAst, columnDefaultSequenceAst, columnExistsAst, columnNullabilityAst, columnTypeAst, computeContentHash, constraintExistsAst, contractToPostgresDatabaseSchemaNode, createExtension, createPostgresBuiltinCodecLookup, createPostgresBuiltinDataTypeLookup, createPostgresCodecRegistryWithBuiltins, createPostgresMigrationPlanner, createSchema, createTable, dataTransform, decodePostgresListText, definePostgresCodecs, describeFullTextIndexProblem, dropDefaultAction, errorPostgresMigrationStackMissing, escapeLiteral, extensionExistsAst, fn, foreignKey, fullTextDocument, fullTextIndexProblems, hasForeignKey, hasIndex, hasUniqueConstraint, indexExistsAst, int4, int8, introspectedTypeText, isPgEnumParams, isPostgresCodecDescriptor, isPostgresSchema, jsonb, lit, noNullValuesAst, parsePostgresListText, pgBit, pgBitColumn, pgBitLengthParams, pgBool, pgBoolColumn, pgBytea, pgChar, pgCharColumn, pgCharacterLengthParams, pgDate, pgDateStoredText, pgEnum, pgEnumDescriptor, pgEnumParams, pgFloat4, pgFloat4Column, pgFloat8, pgFloat8Column, pgFloatColumn, pgInet, pgInetColumn, pgInt2, pgInt2Column, pgInt4, pgInt4Column, pgInt8, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgInterval, pgIntervalColumn, pgJson, pgJsonColumn, pgJsonb, pgJsonbColumn, pgNumeric, pgNumericColumn, pgNumericParams, pgPrecisionParams, pgTable, pgText, pgTextArray, pgTextColumn, pgTime, pgTimeStoredText, pgTimestamp, pgTimestampStoredText, pgTimestamptz, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimestamptzStoredText, pgTimetz, pgTimetzColumn, pgTimetzStoredText, pgTsquery, pgUnboundedIntColumn, pgUuid, pgUuidColumn, pgVarbit, pgVarbitColumn, pgVarchar, pgVarcharColumn, phrasetoTsquery, placeholder, plaintoTsquery, planIssues, policyInputFromSerialized, policyRoleList, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCodecTraitsOf, postgresCreateNamespace, postgresDataTypeEntries, postgresDataTypes, postgresError, postgresNativeAuthoringTypes, postgresNowGeneratorControlDescriptors, postgresNowGenerators, postgresPslTypeConstructors, postgresRenderCheckExpressions, postgresResolveDefault, postgresScalarAuthoringTypes, primaryKey, prisma7PostgresBinding, qualifiedEnumName, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, readPostgresDefault, renderCallsToTypeScript, renderFullTextIndexDocument, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, sql, stackDataTypes, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, toTsquery, tsquery, unique, validateEnumValueLength, websearchToTsquery, weightGroupsOf };
45
+ import { t as prisma7PostgresBinding } from "./prisma7-binding-D4x9fi9T.mjs";
46
+ export { AddCheckConstraintCall, AddColumnAction, AddColumnCall, AddColumnWithTemporaryDefaultCall, AddConstraintAction, AddForeignKeyCall, AddNativeEnumValueCall, AddPrimaryKeyCall, AddRequiredColumnToEmptyTableCall, AddUniqueCall, AlterColumnTypeAction, AlterColumnTypeCall, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, DataTransformCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultAction, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, FULL_TEXT_INDEX_TYPE, FullTextDocument, MARKER_LOCK_KEY, MARKER_LOCK_SQL, PostgresMigration as Migration, MigrationCLI, PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_TSQUERY_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, POLICY_COMMAND_SQL, POLICY_OPERATION_PREDICATES, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterTable, PostgresCodecDescriptor, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, PostgresDdlNode, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropType, PostgresNamespaceSchemaNode, PostgresNativeEnum, PostgresNativeEnumSchemaNode, PostgresPolicySchemaNode, PostgresRlsEnablement, PostgresRlsPolicy, PostgresRole, PostgresRoleSchemaNode, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, PostgresTableSource, PostgresUnboundSchema, RawSqlCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameTableCall, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SetDefaultCall, SetNotNullCall, TypeScriptRenderablePostgresMigration, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, alterTypeCheck, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, buildBuiltinIdentityValue, buildColumnTypeSql, buildControlTableBootstrapQueries, buildPostgresCodecDescriptorRegistry, buildPostgresPlanDiff, buildSchemaLookupMap, buildSignMarkerBootstrapQueries, checkExpression, coalesceSubtreeIssues, col, columnDefaultAst, columnDefaultSequenceAst, columnExistsAst, columnNullabilityAst, columnTypeAst, computeContentHash, constraintExistsAst, contractToPostgresDatabaseSchemaNode, createExtension, createPostgresBuiltinCodecLookup, createPostgresBuiltinDataTypeLookup, createPostgresCodecRegistryWithBuiltins, createPostgresMigrationPlanner, createSchema, createTable, dataTransform, decodePostgresListText, definePostgresCodecs, describeFullTextIndexProblem, dropDefaultAction, errorPostgresMigrationStackMissing, escapeLiteral, extensionExistsAst, fn, foreignKey, fullTextDocument, fullTextIndexProblems, hasForeignKey, hasIndex, hasUniqueConstraint, indexExistsAst, int4, int8, introspectedTypeText, isPgEnumParams, isPostgresCodecDescriptor, isPostgresSchema, jsonb, lit, noNullValuesAst, parsePostgresListText, pgBit, pgBitColumn, pgBitLengthParams, pgBool, pgBoolColumn, pgBytea, pgChar, pgCharColumn, pgCharacterLengthParams, pgDate, pgDateStoredText, pgEnum, pgEnumDescriptor, pgEnumParams, pgFloat4, pgFloat4Column, pgFloat8, pgFloat8Column, pgFloatColumn, pgInet, pgInetColumn, pgInt2, pgInt2Column, pgInt4, pgInt4Column, pgInt8, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgInterval, pgIntervalColumn, pgJson, pgJsonColumn, pgJsonb, pgJsonbColumn, pgJsonbEnumRefusal, pgNumeric, pgNumericColumn, pgNumericParams, pgPrecisionParams, pgTable, pgText, pgTextArray, pgTextColumn, pgTime, pgTimeStoredText, pgTimestamp, pgTimestampStoredText, pgTimestamptz, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimestamptzStoredText, pgTimetz, pgTimetzColumn, pgTimetzStoredText, pgTsquery, pgUnboundedIntColumn, pgUuid, pgUuidColumn, pgVarbit, pgVarbitColumn, pgVarchar, pgVarcharColumn, phrasetoTsquery, placeholder, plaintoTsquery, planIssues, policyInputFromSerialized, policyRoleList, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCodecTraitsOf, postgresCreateNamespace, postgresDataTypeEntries, postgresDataTypes, postgresError, postgresNativeAuthoringTypes, postgresNowGeneratorControlDescriptors, postgresNowGenerators, postgresPslTypeConstructors, postgresRenderCheckExpressions, postgresResolveDefault, postgresScalarAuthoringTypes, primaryKey, prisma7PostgresBinding, qualifiedEnumName, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, readPostgresDefault, renderCallsToTypeScript, renderFullTextIndexDocument, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, sql, stackDataTypes, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, toTsquery, tsquery, unique, validateEnumValueLength, websearchToTsquery, weightGroupsOf };
@@ -1,2 +1,2 @@
1
- import { t as postgresAggregateDescriptors } from "./aggregates-B3lIBjGK.mjs";
1
+ import { t as postgresAggregateDescriptors } from "./aggregates-C2xqsGZ2.mjs";
2
2
  export { postgresAggregateDescriptors };
@@ -1,3 +1,3 @@
1
- import { a as PostgresCodecOptions, c as isPostgresCodecDescriptor, i as PostgresCodecDescriptorRegistry, l as postgresCodec, n as AnyPostgresCodecDescriptor, o as buildPostgresCodecDescriptorRegistry, r as PostgresCodecDescriptor, s as definePostgresCodecs, t as AdaptedPostgresCodecDescriptor } from "./codec-descriptor-Cbz5bbma-dxeoAwS2.mjs";
2
- import "./codec-descriptor-BlMs1rkg.mjs";
1
+ import { a as PostgresCodecOptions, c as isPostgresCodecDescriptor, i as PostgresCodecDescriptorRegistry, l as postgresCodec, n as AnyPostgresCodecDescriptor, o as buildPostgresCodecDescriptorRegistry, r as PostgresCodecDescriptor, s as definePostgresCodecs, t as AdaptedPostgresCodecDescriptor } from "./codec-descriptor-d1ByNBEk-ClDTxfu9.mjs";
2
+ import "./codec-descriptor-CzyUKm6m.mjs";
3
3
  export { type AdaptedPostgresCodecDescriptor, type AnyPostgresCodecDescriptor, PostgresCodecDescriptor, type PostgresCodecDescriptorRegistry, type PostgresCodecOptions, buildPostgresCodecDescriptorRegistry, definePostgresCodecs, isPostgresCodecDescriptor, postgresCodec };
@@ -1,2 +1,2 @@
1
- import { a as postgresCodec, i as isPostgresCodecDescriptor, n as buildPostgresCodecDescriptorRegistry, r as definePostgresCodecs, t as PostgresCodecDescriptor } from "./codec-descriptor-DSMjoW72-ZoCcTHLX.mjs";
1
+ import { a as postgresCodec, i as isPostgresCodecDescriptor, n as buildPostgresCodecDescriptorRegistry, r as definePostgresCodecs, t as PostgresCodecDescriptor } from "./codec-descriptor-hKN22hwP-BypvXBN8.mjs";
2
2
  export { PostgresCodecDescriptor, buildPostgresCodecDescriptorRegistry, definePostgresCodecs, isPostgresCodecDescriptor, postgresCodec };
@@ -1,4 +1,4 @@
1
- import { y as PgInterval } from "./codecs-DgslvOOU-eZpfm_fU.mjs";
2
- import { a as JsonValue$1, c as Time, d as TimestampString, f as Timestamptz, g as Varchar, h as VarBit, i as Interval, l as TimeString, m as Timetz, n as Char, o as Numeric, p as TimestamptzString, r as CodecTypes, s as ParameterizedOutputTypesForTypeParams, t as Bit, u as Timestamp } from "./codec-types-yRnVORmz-C5oISm2L.mjs";
3
- import "./codec-types-CXL3_pbl.mjs";
1
+ import { y as PgInterval } from "./codecs-CADK7dCR-Cku8S_Im.mjs";
2
+ import { a as JsonValue$1, c as Time, d as TimestampString, f as Timestamptz, g as Varchar, h as VarBit, i as Interval, l as TimeString, m as Timetz, n as Char, o as Numeric, p as TimestamptzString, r as CodecTypes, s as ParameterizedOutputTypesForTypeParams, t as Bit, u as Timestamp } from "./codec-types-Ct_4iTVc-4VoGpl4J.mjs";
3
+ import "./codec-types-CVyCyOV-.mjs";
4
4
  export { Bit, Char, CodecTypes, Interval, type JsonValue$1 as JsonValue, Numeric, ParameterizedOutputTypesForTypeParams, type PgInterval, Time, TimeString, Timestamp, TimestampString, Timestamptz, TimestamptzString, Timetz, VarBit, Varchar };
@@ -1,4 +1,4 @@
1
- import { $ as pgIntervalColumn, A as PgTimestamptzDateDescriptor, B as pgBitColumn, C as PgNumericDescriptor, F as PgUnboundedIntDescriptor, G as pgFloat8Column, H as pgCharColumn, I as PgUuidDescriptor, J as pgInt2Column, K as pgFloatColumn, L as PgVarbitDescriptor, N as PgTimetzDescriptor, Q as pgIntColumn, R as PgVarcharDescriptor, S as PgJsonbDescriptor, U as pgEnumDescriptor, V as pgBoolColumn, W as pgFloat4Column, X as pgInt8Column, Y as pgInt4Column, Z as pgInt8NumberColumn, _ as PgInt8NumberDescriptor, at as pgTimestamptzDateDescriptor, b as PgIntervalDescriptor, c as PgEnumDescriptor, ct as pgUuidColumn, d as PgFloat8Descriptor, et as pgJsonColumn, f as PgFloatDescriptor, g as PgInt8Descriptor, h as PgInt4Descriptor, i as PgCharDescriptor, it as pgTimestamptzDateColumn, k as PgTimestamptzDateCodec, l as PgEnumParams, lt as pgVarbitColumn, m as PgInt2Descriptor, n as PgBoolDescriptor, nt as pgNumericColumn, ot as pgTimetzColumn, p as PgInetDescriptor, q as pgInetColumn, rt as pgTextColumn, s as PgEnumCodec, st as pgUnboundedIntColumn, t as PgBitDescriptor, tt as pgJsonbColumn, u as PgFloat4Descriptor, ut as pgVarcharColumn, v as PgIntDescriptor, w as PgTextDescriptor, x as PgJsonDescriptor, y as PgInterval, z as isPgEnumParams } from "./codecs-DgslvOOU-eZpfm_fU.mjs";
1
+ import { $ as pgIntervalColumn, A as PgTimestamptzDateDescriptor, B as pgBitColumn, C as PgNumericDescriptor, F as PgUnboundedIntDescriptor, G as pgFloat8Column, H as pgCharColumn, I as PgUuidDescriptor, J as pgInt2Column, K as pgFloatColumn, L as PgVarbitDescriptor, N as PgTimetzDescriptor, Q as pgIntColumn, R as PgVarcharDescriptor, S as PgJsonbDescriptor, U as pgEnumDescriptor, V as pgBoolColumn, W as pgFloat4Column, X as pgInt8Column, Y as pgInt4Column, Z as pgInt8NumberColumn, _ as PgInt8NumberDescriptor, at as pgTimestamptzDateDescriptor, b as PgIntervalDescriptor, c as PgEnumDescriptor, ct as pgUuidColumn, d as PgFloat8Descriptor, et as pgJsonColumn, f as PgFloatDescriptor, g as PgInt8Descriptor, h as PgInt4Descriptor, i as PgCharDescriptor, it as pgTimestamptzDateColumn, k as PgTimestamptzDateCodec, l as PgEnumParams, lt as pgVarbitColumn, m as PgInt2Descriptor, n as PgBoolDescriptor, nt as pgNumericColumn, ot as pgTimetzColumn, p as PgInetDescriptor, q as pgInetColumn, rt as pgTextColumn, s as PgEnumCodec, st as pgUnboundedIntColumn, t as PgBitDescriptor, tt as pgJsonbColumn, u as PgFloat4Descriptor, ut as pgVarcharColumn, v as PgIntDescriptor, w as PgTextDescriptor, x as PgJsonDescriptor, y as PgInterval, z as isPgEnumParams } from "./codecs-CADK7dCR-Cku8S_Im.mjs";
2
2
  import { n as parsePostgresListText } from "./list-decoder-BcrLExnx-hTa7qY7a.mjs";
3
- import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup, n as assemblePostgresCodecRegistry, o as postgresCodecDescriptorRegistry, r as assemblePostgresCodecRegistryWithBuiltins, s as postgresCodecRegistry, t as PostgresCodecRegistry } from "./codecs-DydRFxCt.mjs";
3
+ import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup, n as assemblePostgresCodecRegistry, o as postgresCodecDescriptorRegistry, r as assemblePostgresCodecRegistryWithBuiltins, s as postgresCodecRegistry, t as PostgresCodecRegistry } from "./codecs-DEMQ3cMm.mjs";
4
4
  export { type PgBitDescriptor, type PgBoolDescriptor, type PgCharDescriptor, type PgEnumCodec, type PgEnumDescriptor, type PgEnumParams, type PgFloat4Descriptor, type PgFloat8Descriptor, type PgFloatDescriptor, type PgInetDescriptor, type PgInt2Descriptor, type PgInt4Descriptor, type PgInt8Descriptor, type PgInt8NumberDescriptor, type PgIntDescriptor, type PgInterval, type PgIntervalDescriptor, type PgJsonDescriptor, type PgJsonbDescriptor, type PgNumericDescriptor, type PgTextDescriptor, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, type PgTimetzDescriptor, type PgUnboundedIntDescriptor, type PgUuidDescriptor, type PgVarbitDescriptor, type PgVarcharDescriptor, type PostgresCodecRegistry, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, isPgEnumParams, parsePostgresListText, pgBitColumn, pgBoolColumn, pgCharColumn, pgEnumDescriptor, pgFloat4Column, pgFloat8Column, pgFloatColumn, pgInetColumn, pgInt2Column, pgInt4Column, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgIntervalColumn, pgJsonColumn, pgJsonbColumn, pgNumericColumn, pgTextColumn, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimetzColumn, pgUnboundedIntColumn, pgUuidColumn, pgVarbitColumn, pgVarcharColumn, postgresCodecDescriptorRegistry, postgresCodecRegistry };
@@ -1,3 +1,3 @@
1
- import { A as pgVarbitColumn, C as pgNumericColumn, D as pgTimetzColumn, E as pgTimestamptzDateDescriptor, O as pgUnboundedIntColumn, S as pgJsonbColumn, T as pgTimestamptzDateColumn, _ as pgInt8Column, a as isPgEnumParams, b as pgIntervalColumn, c as pgBoolColumn, d as pgFloat4Column, f as pgFloat8Column, g as pgInt4Column, h as pgInt2Column, j as pgVarcharColumn, k as pgUuidColumn, l as pgCharColumn, m as pgInetColumn, n as PgTimestamptzDateDescriptor, o as parsePostgresListText, p as pgFloatColumn, s as pgBitColumn, t as PgTimestamptzDateCodec, u as pgEnumDescriptor, v as pgInt8NumberColumn, w as pgTextColumn, x as pgJsonColumn, y as pgIntColumn } from "./codecs-DNjF5kIh-BkybYk_D.mjs";
2
- import { a as postgresCodecDescriptorRegistry, i as createPostgresCodecRegistryWithBuiltins, n as assemblePostgresCodecRegistryWithBuiltins, o as postgresCodecRegistry, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-C8ymMRsH-B48NRqXL.mjs";
1
+ import { A as pgVarbitColumn, C as pgNumericColumn, D as pgTimetzColumn, E as pgTimestamptzDateDescriptor, O as pgUnboundedIntColumn, S as pgJsonbColumn, T as pgTimestamptzDateColumn, _ as pgInt8Column, a as isPgEnumParams, b as pgIntervalColumn, c as pgBoolColumn, d as pgFloat4Column, f as pgFloat8Column, g as pgInt4Column, h as pgInt2Column, j as pgVarcharColumn, k as pgUuidColumn, l as pgCharColumn, m as pgInetColumn, n as PgTimestamptzDateDescriptor, o as parsePostgresListText, p as pgFloatColumn, s as pgBitColumn, t as PgTimestamptzDateCodec, u as pgEnumDescriptor, v as pgInt8NumberColumn, w as pgTextColumn, x as pgJsonColumn, y as pgIntColumn } from "./codecs-DGvwfB1h-BYcObjvV.mjs";
2
+ import { a as postgresCodecDescriptorRegistry, i as createPostgresCodecRegistryWithBuiltins, n as assemblePostgresCodecRegistryWithBuiltins, o as postgresCodecRegistry, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-EFFhQhEM-DANMHp-D.mjs";
3
3
  export { PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, isPgEnumParams, parsePostgresListText, pgBitColumn, pgBoolColumn, pgCharColumn, pgEnumDescriptor, pgFloat4Column, pgFloat8Column, pgFloatColumn, pgInetColumn, pgInt2Column, pgInt4Column, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgIntervalColumn, pgJsonColumn, pgJsonbColumn, pgNumericColumn, pgTextColumn, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimetzColumn, pgUnboundedIntColumn, pgUuidColumn, pgVarbitColumn, pgVarcharColumn, postgresCodecDescriptorRegistry, postgresCodecRegistry };
@@ -3,29 +3,30 @@ import { c as postgresError } from "./errors-BrhQYgdL-D_lIrddD.mjs";
3
3
  import { i as quoteIdentifier } from "./sql-utils-Bnw3JbWf-zvWDkyrr.mjs";
4
4
  import { t as DEFAULT_NAMESPACE_ID } from "./namespace-ids-xtp_ZY86-Cpp8PTxD.mjs";
5
5
  import { t as PostgresNativeEnum } from "./postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs";
6
- import { P as setFallbackTemporal, i as decodePostgresListText, o as parsePostgresListText } from "./codecs-DNjF5kIh-BkybYk_D.mjs";
6
+ import { P as setFallbackTemporal, i as decodePostgresListText, o as parsePostgresListText } from "./codecs-DGvwfB1h-BYcObjvV.mjs";
7
7
  import { s as fullTextIndexDefinitionOf } from "./full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs";
8
8
  import { i as PostgresRlsPolicy, n as PostgresRlsEnablement, o as PostgresRole } from "./postgres-schema-C6w1rzOF-bzaF5PIS.mjs";
9
9
  import { r as computeContentHash } from "./canonicalize-RdxoUHao-DK_M6HU-.mjs";
10
- import { c as postgresNowGeneratorControlDescriptors, t as POLICY_BLOCK_KEYWORDS } from "./authoring-CArQ0ZSb-BXqyKMTu.mjs";
10
+ import { c as postgresNowGeneratorControlDescriptors, t as POLICY_BLOCK_KEYWORDS } from "./authoring-CYmxS94I-rwTYrwpM.mjs";
11
11
  import { t as postgresRenderCheckExpressions } from "./check-expressions-7uCCP01t-WtUqfqkP.mjs";
12
- import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-9qCQPbrI-DFEFmwBv.mjs";
12
+ import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-BZczsKUL-L5NrK7J6.mjs";
13
13
  import { a as postgresDiffSubjectGranularity, i as postgresDiffSubjectEntityKind } from "./postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs";
14
14
  import { t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs";
15
- import { i as qualifyTableName } from "./planner-sql-checks-BluJBZmQ-ClqyqOhD.mjs";
16
- import { r as diffPostgresSchema } from "./diff-database-schema-CmWmomi3-PoUser3Y.mjs";
17
- import { t as PostgresContractSerializer } from "./postgres-contract-view-xyfQHZ29-HOrk9af1.mjs";
18
- import { o as postgresContractToSchema } from "./postgres-migration-fZk6Dmud-BjRqdGdm.mjs";
19
- import { t as createPostgresMigrationPlanner } from "./planner-olDFDn2v-Bh0e16rN.mjs";
15
+ import { i as qualifyTableName } from "./planner-sql-checks-CiJuuHxl-2xZ6yNhV.mjs";
16
+ import { r as diffPostgresSchema } from "./diff-database-schema-BHkYz_Ll-DGSW_oEV.mjs";
17
+ import { t as PostgresContractSerializer } from "./postgres-contract-view-dWC-xWeo-GesLqxrx.mjs";
18
+ import { o as postgresContractToSchema } from "./postgres-migration-B6Jwrg_c-BhLHpVep.mjs";
19
+ import { t as createPostgresMigrationPlanner } from "./planner-DzVQXz7j-Ca88BDTV.mjs";
20
20
  import { n as MARKER_LOCK_SQL, t as MARKER_LOCK_KEY } from "./marker-lock-DFc1Tfv5-QMJSzMIa.mjs";
21
- import { _ as postgresNativeAuthoringTypes, a as buildIndexAttribute, c as buildNativeEnumBlock, d as inferPostgresPslContract, f as namedArg, g as positionalArg, h as parseDefaultAttributeString, i as buildFullTextIndexAttribute, n as buildAttribute, o as buildMapAttribute, r as buildCheckAttribute, s as buildModelConstraintAttribute, t as SYNTHETIC_SPAN, v as postgresPslTypeConstructors, y as postgresScalarAuthoringTypes } from "./type-constructors-DQ7O80xT-DdTGyTSt.mjs";
21
+ import { _ as postgresNativeAuthoringTypes, a as buildIndexAttribute, c as buildNativeEnumBlock, d as inferPostgresPslContract, f as namedArg, g as positionalArg, h as parseDefaultAttributeString, i as buildFullTextIndexAttribute, n as buildAttribute, o as buildMapAttribute, r as buildCheckAttribute, s as buildModelConstraintAttribute, t as SYNTHETIC_SPAN, v as postgresPslTypeConstructors, y as postgresScalarAuthoringTypes } from "./type-constructors-CNT0Zq7_-D8W003jr.mjs";
22
22
  import { dataTypeParams, requiredParamKeys, validateCodecTypeParams } from "@prisma/orm-framework/components/codec";
23
23
  import { blindCast } from "@prisma/orm-framework/utils/casts";
24
+ import { InternalError } from "@prisma/orm-framework/utils/internal-error";
24
25
  import { isSqlDataType, unquotedSqlBaseName } from "@prisma/orm-family-sql/contract/data-type";
25
26
  import { escapePslString } from "@prisma/orm-family-sql/contract/data-type-support";
26
27
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
27
28
  import { StorageColumn, resolvedTypeParams } from "@prisma/orm-family-sql/contract/types";
28
- import { APP_SPACE_ID } from "@prisma/orm-framework/components/control";
29
+ import { APP_SPACE_ID, failedPrecheckWhy, schemaCheckWhy, withFailingSpace } from "@prisma/orm-framework/components/control";
29
30
  import { assertDefined, invariant } from "@prisma/orm-framework/utils/assertions";
30
31
  import { composeCheckWirePrefix, computeCheckContentHash, computeIndexContentHash, formatWireName, parseNaming } from "@prisma/orm-family-sql/schema-ir/naming";
31
32
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
@@ -33,11 +34,10 @@ import { convertedColumnOf, requiredColumnOf, requiredColumnsOfMigration, rowsWi
33
34
  import { authoringTypeConstructorArguments, findAuthoringTypeConstructorCall } from "@prisma/orm-framework/components/authoring";
34
35
  import { NAME_THE_PSL_SOURCE_LOSES, isPslIdentifier } from "@prisma/orm-framework/psl-parser";
35
36
  import { printSqlExpressionLiteral, sqlTextsReadBack } from "@prisma/orm-family-sql/contract/sql-expression";
36
- import { InternalError } from "@prisma/orm-framework/utils/internal-error";
37
37
  import { notOk, ok, okVoid } from "@prisma/orm-framework/utils/result";
38
38
  import { SqlSchemaVerifierBase } from "@prisma/orm-family-sql/family/ir";
39
39
  import { effectiveControlPolicy } from "@prisma/orm-framework/contract/types";
40
- import { generatorCallsFor, inferredTypeConstructors, mapDefault, pslTypeArgumentText } from "@prisma/orm-family-sql/family/psl-build";
40
+ import { generatorCallsFor, inferredTypeConstructors, mapDefault, pslTypeArgumentText, writeDefaultLiteral } from "@prisma/orm-family-sql/family/psl-build";
41
41
  import { UNBOUND_PSL_NAMESPACE_NAME, UNSPECIFIED_PSL_NAMESPACE_ID, makePslNamespace, makePslNamespaceEntries } from "@prisma/orm-framework/components/psl-ast";
42
42
  import { Temporal } from "temporal-polyfill/full/implementation";
43
43
  import { SqlQueryError } from "@prisma/orm-family-sql/errors";
@@ -158,9 +158,8 @@ var PostgresMigrationRunner = class {
158
158
  frameworkComponents: options.frameworkComponents
159
159
  });
160
160
  if (!schemaVerifyResult.ok) return runnerFailure("MIGRATION.SCHEMA_VERIFY_FAILED", schemaVerifyResult.summary, {
161
- why: "The resulting database schema does not satisfy the destination contract.",
162
- meta: { issues: schemaVerifyResult.schema.issues },
163
- schemaIssues: schemaVerifyResult.schema.issues
161
+ why: schemaCheckWhy(schemaVerifyResult.schema.issues),
162
+ meta: { schemaIssues: schemaVerifyResult.schema.issues }
164
163
  });
165
164
  }
166
165
  const incomingInvariants = options.plan.providedInvariants ?? [];
@@ -191,10 +190,7 @@ var PostgresMigrationRunner = class {
191
190
  driver,
192
191
  space
193
192
  });
194
- if (!result.ok) return notOk({
195
- ...result.failure,
196
- failingSpace: space
197
- });
193
+ if (!result.ok) return notOk(withFailingSpace(result.failure, space));
198
194
  perSpaceResults.push({
199
195
  space,
200
196
  value: result.value
@@ -266,19 +262,17 @@ var PostgresMigrationRunner = class {
266
262
  const failed = `Operation ${operation.id} failed during ${phase}: ${step.description}`;
267
263
  const required = requiredColumnOf(step);
268
264
  const rowsWithoutValue = required === void 0 ? void 0 : await this.rowsWithoutValue(driver, operation, required, plan);
265
+ const failedCheck = {
266
+ operationId: operation.id,
267
+ phase,
268
+ description: step.description
269
+ };
269
270
  return runnerFailure(code, rowsWithoutValue?.summary ?? failed, {
270
- ...ifDefined("why", rowsWithoutValue === void 0 ? void 0 : failed),
271
+ ...ifDefined("why", rowsWithoutValue !== void 0 ? failed : phase === "precheck" ? failedPrecheckWhy(failedCheck) : void 0),
271
272
  meta: {
272
- operationId: operation.id,
273
- phase,
274
- stepDescription: step.description
275
- },
276
- failedCheck: {
277
- operationId: operation.id,
278
- phase,
279
- description: step.description
280
- },
281
- rowsWithoutValue: rowsWithoutValue?.reports
273
+ failedCheck,
274
+ ...ifDefined("rowsWithoutValue", rowsWithoutValue?.reports)
275
+ }
282
276
  });
283
277
  }
284
278
  }
@@ -311,8 +305,8 @@ var PostgresMigrationRunner = class {
311
305
  } catch (error) {
312
306
  if (SqlQueryError.is(error)) return runnerFailure("MIGRATION.EXECUTION_FAILED", `Operation ${operation.id} failed during execution: ${step.description}`, {
313
307
  why: error.message,
314
- failedTypeChange: failedTypeChangeOf(step, error.sqlState, plan),
315
308
  meta: {
309
+ ...ifDefined("failedTypeChange", failedTypeChangeOf(step, error.sqlState, plan)),
316
310
  operationId: operation.id,
317
311
  stepDescription: step.description,
318
312
  sql: step.sql,
@@ -618,6 +612,12 @@ function refuseDefaultOutsideEnum(input) {
618
612
  pslTypeName: input.pslTypeName
619
613
  });
620
614
  }
615
+ function refuseUnwritableEnumMember(input) {
616
+ throw unsupported(`enum "${input.enumName}" member "${input.member}" stores ${JSON.stringify(input.value)}, which no Prisma 8 PSL literal of the enum's data type writes.`, "Writing the value in any other form would parse, but the PSL source would read it back as a different value.", "Type the enum with a codec whose values PSL writes, such as pg/text@1, before printing.", {
617
+ enumName: input.enumName,
618
+ member: input.member
619
+ });
620
+ }
621
621
  function refuseUnwritableLiteralDefault(input) {
622
622
  throw unsupported(`column ${input.coordinate} has a default that cannot be written in Prisma 8 PSL: no data type the ${input.pslTypeName} type takes writes ${input.written}.`, "Writing the value in any other form would parse, but the PSL source would read it back as a different value.", "Replace the default with a database expression default, or drop the default before printing.", {
623
623
  coordinate: input.coordinate,
@@ -1419,11 +1419,11 @@ function buildTypesBlock(contract, inferredConstructors, context) {
1419
1419
  };
1420
1420
  }
1421
1421
  /**
1422
- * One `enum <name> { … }` block per domain enum, each member written as
1423
- * `Name = <value>` under `@@type`. The PSL source reads a member value as JSON,
1424
- * so the value is written as JSON text.
1422
+ * One `enum <name> { … }` block per domain enum, each member written as `Name = <value>` under
1423
+ * `@@type`. The PSL source reads a member as a written value of the enum codec's data type, so each
1424
+ * member is written as the PSL literal that type reads back as the stored value, as a default is.
1425
1425
  */
1426
- function buildDomainEnumBlocks(enums) {
1426
+ function buildDomainEnumBlocks(enums, context) {
1427
1427
  return Object.entries(enums).map(([name, domainEnum]) => {
1428
1428
  refuseUnwritableName("enum", name);
1429
1429
  return {
@@ -1432,8 +1432,17 @@ function buildDomainEnumBlocks(enums) {
1432
1432
  name,
1433
1433
  parameters: Object.fromEntries(domainEnum.members.map((member) => {
1434
1434
  refuseUnwritableName("enum member", member.name);
1435
+ const written = writeDefaultLiteral(member.value, {
1436
+ dataTypes: context.dataTypes,
1437
+ columnCodec: context.codecLookup.descriptorFor(domainEnum.codecId)
1438
+ });
1439
+ if (written === void 0) refuseUnwritableEnumMember({
1440
+ enumName: name,
1441
+ member: member.name,
1442
+ value: member.value
1443
+ });
1435
1444
  return [member.name, {
1436
- expression: JSON.stringify(member.value),
1445
+ expression: written,
1437
1446
  span: SYNTHETIC_SPAN
1438
1447
  }];
1439
1448
  })),
@@ -2404,7 +2413,7 @@ function buildPostgresPslContract(contract, context) {
2404
2413
  };
2405
2414
  const namespaces = [];
2406
2415
  refuseEnumsOutsideDefaultNamespace(contract);
2407
- const topLevelEnums = buildDomainEnumBlocks(defaultDomainEnums);
2416
+ const topLevelEnums = buildDomainEnumBlocks(defaultDomainEnums, context);
2408
2417
  if (topLevelEnums.length > 0) namespaces.push(makePslNamespace({
2409
2418
  kind: "namespace",
2410
2419
  name: UNSPECIFIED_PSL_NAMESPACE_ID,