@prisma/migrate 6.5.0-dev.37 → 6.5.0-dev.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js CHANGED
@@ -50,7 +50,7 @@ var import_chunk_V3ZMNXZC = require("./chunk-V3ZMNXZC.js");
50
50
  var import_chunk_255BRND3 = require("./chunk-255BRND3.js");
51
51
  var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
52
52
  var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
53
- var import_chunk_6QQKVDTF = require("./chunk-6QQKVDTF.js");
53
+ var import_chunk_AE4MKNFS = require("./chunk-AE4MKNFS.js");
54
54
  var import_chunk_A6PMXMMT = require("./chunk-A6PMXMMT.js");
55
55
  var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
56
56
  var import_chunk_CTPONE6G = require("./chunk-CTPONE6G.js");
@@ -72,7 +72,7 @@ var import_config = require("@prisma/config");
72
72
  var import_debug = __toESM(require("@prisma/debug"));
73
73
  var import_engines_version = require("@prisma/engines-version");
74
74
  var import_internals = require("@prisma/internals");
75
- var version = "6.5.0-dev.37";
75
+ var version = "6.5.0-dev.38";
76
76
  process.on("uncaughtException", (e) => {
77
77
  console.log(e);
78
78
  });
@@ -99,7 +99,7 @@ async function main() {
99
99
  resolve: import_chunk_TM3ETZES.MigrateResolve.new(),
100
100
  reset: import_chunk_RQFGRXJI.MigrateReset.new(),
101
101
  deploy: import_chunk_LVLRGTYH.MigrateDeploy.new(),
102
- diff: import_chunk_6QQKVDTF.MigrateDiff.new()
102
+ diff: import_chunk_AE4MKNFS.MigrateDiff.new()
103
103
  }),
104
104
  db: import_chunk_HIFVDK2U.DbCommand.new({
105
105
  execute: import_chunk_TPQ5YBLK.DbExecute.new(),
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_EGPJABTW_exports = {};
20
- __export(chunk_EGPJABTW_exports, {
19
+ var chunk_73OPZA7N_exports = {};
20
+ __export(chunk_73OPZA7N_exports, {
21
21
  require_lib: () => require_lib2
22
22
  });
23
- module.exports = __toCommonJS(chunk_EGPJABTW_exports);
23
+ module.exports = __toCommonJS(chunk_73OPZA7N_exports);
24
24
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
25
25
  var require_postgres_array = (0, import_chunk_WWAWV7DQ.__commonJS)({
26
26
  "../../node_modules/.pnpm/postgres-array@2.0.0/node_modules/postgres-array/index.js"(exports) {
@@ -938,7 +938,7 @@ var require_pg_types = (0, import_chunk_WWAWV7DQ.__commonJS)({
938
938
  }
939
939
  });
940
940
  var require_defaults = (0, import_chunk_WWAWV7DQ.__commonJS)({
941
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/defaults.js"(exports, module2) {
941
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/defaults.js"(exports, module2) {
942
942
  "use strict";
943
943
  module2.exports = {
944
944
  // database host. defaults to localhost
@@ -998,7 +998,7 @@ var require_defaults = (0, import_chunk_WWAWV7DQ.__commonJS)({
998
998
  }
999
999
  });
1000
1000
  var require_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
1001
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/utils.js"(exports, module2) {
1001
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/utils.js"(exports, module2) {
1002
1002
  "use strict";
1003
1003
  var defaults = require_defaults();
1004
1004
  function escapeElement(elementRepresentation) {
@@ -1037,27 +1037,27 @@ var require_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
1037
1037
  if (val == null) {
1038
1038
  return null;
1039
1039
  }
1040
- if (typeof val === "object") {
1041
- if (val instanceof Buffer) {
1042
- return val;
1043
- }
1044
- if (ArrayBuffer.isView(val)) {
1045
- var buf = Buffer.from(val.buffer, val.byteOffset, val.byteLength);
1046
- if (buf.length === val.byteLength) {
1047
- return buf;
1048
- }
1049
- return buf.slice(val.byteOffset, val.byteOffset + val.byteLength);
1050
- }
1051
- if (val instanceof Date) {
1052
- if (defaults.parseInputDatesAsUTC) {
1053
- return dateToStringUTC(val);
1054
- } else {
1055
- return dateToString(val);
1056
- }
1040
+ if (val instanceof Buffer) {
1041
+ return val;
1042
+ }
1043
+ if (ArrayBuffer.isView(val)) {
1044
+ var buf = Buffer.from(val.buffer, val.byteOffset, val.byteLength);
1045
+ if (buf.length === val.byteLength) {
1046
+ return buf;
1057
1047
  }
1058
- if (Array.isArray(val)) {
1059
- return arrayString(val);
1048
+ return buf.slice(val.byteOffset, val.byteOffset + val.byteLength);
1049
+ }
1050
+ if (val instanceof Date) {
1051
+ if (defaults.parseInputDatesAsUTC) {
1052
+ return dateToStringUTC(val);
1053
+ } else {
1054
+ return dateToString(val);
1060
1055
  }
1056
+ }
1057
+ if (Array.isArray(val)) {
1058
+ return arrayString(val);
1059
+ }
1060
+ if (typeof val === "object") {
1061
1061
  return prepareObject(val, seen);
1062
1062
  }
1063
1063
  return val.toString();
@@ -1073,19 +1073,26 @@ var require_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
1073
1073
  }
1074
1074
  return JSON.stringify(val);
1075
1075
  }
1076
+ function pad(number, digits) {
1077
+ number = "" + number;
1078
+ while (number.length < digits) {
1079
+ number = "0" + number;
1080
+ }
1081
+ return number;
1082
+ }
1076
1083
  function dateToString(date) {
1077
1084
  var offset = -date.getTimezoneOffset();
1078
1085
  var year = date.getFullYear();
1079
1086
  var isBCYear = year < 1;
1080
1087
  if (isBCYear) year = Math.abs(year) + 1;
1081
- var ret = String(year).padStart(4, "0") + "-" + String(date.getMonth() + 1).padStart(2, "0") + "-" + String(date.getDate()).padStart(2, "0") + "T" + String(date.getHours()).padStart(2, "0") + ":" + String(date.getMinutes()).padStart(2, "0") + ":" + String(date.getSeconds()).padStart(2, "0") + "." + String(date.getMilliseconds()).padStart(3, "0");
1088
+ var ret = pad(year, 4) + "-" + pad(date.getMonth() + 1, 2) + "-" + pad(date.getDate(), 2) + "T" + pad(date.getHours(), 2) + ":" + pad(date.getMinutes(), 2) + ":" + pad(date.getSeconds(), 2) + "." + pad(date.getMilliseconds(), 3);
1082
1089
  if (offset < 0) {
1083
1090
  ret += "-";
1084
1091
  offset *= -1;
1085
1092
  } else {
1086
1093
  ret += "+";
1087
1094
  }
1088
- ret += String(Math.floor(offset / 60)).padStart(2, "0") + ":" + String(offset % 60).padStart(2, "0");
1095
+ ret += pad(Math.floor(offset / 60), 2) + ":" + pad(offset % 60, 2);
1089
1096
  if (isBCYear) ret += " BC";
1090
1097
  return ret;
1091
1098
  }
@@ -1093,7 +1100,7 @@ var require_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
1093
1100
  var year = date.getUTCFullYear();
1094
1101
  var isBCYear = year < 1;
1095
1102
  if (isBCYear) year = Math.abs(year) + 1;
1096
- var ret = String(year).padStart(4, "0") + "-" + String(date.getUTCMonth() + 1).padStart(2, "0") + "-" + String(date.getUTCDate()).padStart(2, "0") + "T" + String(date.getUTCHours()).padStart(2, "0") + ":" + String(date.getUTCMinutes()).padStart(2, "0") + ":" + String(date.getUTCSeconds()).padStart(2, "0") + "." + String(date.getUTCMilliseconds()).padStart(3, "0");
1103
+ var ret = pad(year, 4) + "-" + pad(date.getUTCMonth() + 1, 2) + "-" + pad(date.getUTCDate(), 2) + "T" + pad(date.getUTCHours(), 2) + ":" + pad(date.getUTCMinutes(), 2) + ":" + pad(date.getUTCSeconds(), 2) + "." + pad(date.getUTCMilliseconds(), 3);
1097
1104
  ret += "+00:00";
1098
1105
  if (isBCYear) ret += " BC";
1099
1106
  return ret;
@@ -1146,7 +1153,7 @@ var require_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
1146
1153
  }
1147
1154
  });
1148
1155
  var require_utils_legacy = (0, import_chunk_WWAWV7DQ.__commonJS)({
1149
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/crypto/utils-legacy.js"(exports, module2) {
1156
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/crypto/utils-legacy.js"(exports, module2) {
1150
1157
  "use strict";
1151
1158
  var nodeCrypto = (0, import_chunk_WWAWV7DQ.__require)("crypto");
1152
1159
  function md5(string) {
@@ -1177,7 +1184,7 @@ var require_utils_legacy = (0, import_chunk_WWAWV7DQ.__commonJS)({
1177
1184
  }
1178
1185
  });
1179
1186
  var require_utils_webcrypto = (0, import_chunk_WWAWV7DQ.__commonJS)({
1180
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/crypto/utils-webcrypto.js"(exports, module2) {
1187
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/crypto/utils-webcrypto.js"(exports, module2) {
1181
1188
  "use strict";
1182
1189
  var nodeCrypto = (0, import_chunk_WWAWV7DQ.__require)("crypto");
1183
1190
  module2.exports = {
@@ -1223,7 +1230,7 @@ var require_utils_webcrypto = (0, import_chunk_WWAWV7DQ.__commonJS)({
1223
1230
  }
1224
1231
  });
1225
1232
  var require_utils2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
1226
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/crypto/utils.js"(exports, module2) {
1233
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/crypto/utils.js"(exports, module2) {
1227
1234
  "use strict";
1228
1235
  var useLegacyCrypto = parseInt(process.versions && process.versions.node && process.versions.node.split(".")[0]) < 15;
1229
1236
  if (useLegacyCrypto) {
@@ -1234,7 +1241,7 @@ var require_utils2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
1234
1241
  }
1235
1242
  });
1236
1243
  var require_sasl = (0, import_chunk_WWAWV7DQ.__commonJS)({
1237
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/crypto/sasl.js"(exports, module2) {
1244
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/crypto/sasl.js"(exports, module2) {
1238
1245
  "use strict";
1239
1246
  var crypto = require_utils2();
1240
1247
  function startSession(mechanisms) {
@@ -1382,7 +1389,7 @@ var require_sasl = (0, import_chunk_WWAWV7DQ.__commonJS)({
1382
1389
  }
1383
1390
  });
1384
1391
  var require_type_overrides = (0, import_chunk_WWAWV7DQ.__commonJS)({
1385
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/type-overrides.js"(exports, module2) {
1392
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/type-overrides.js"(exports, module2) {
1386
1393
  "use strict";
1387
1394
  var types = require_pg_types();
1388
1395
  function TypeOverrides(userTypes) {
@@ -1415,7 +1422,7 @@ var require_type_overrides = (0, import_chunk_WWAWV7DQ.__commonJS)({
1415
1422
  }
1416
1423
  });
1417
1424
  var require_pg_connection_string = (0, import_chunk_WWAWV7DQ.__commonJS)({
1418
- "../../node_modules/.pnpm/pg-connection-string@2.7.0/node_modules/pg-connection-string/index.js"(exports, module2) {
1425
+ "../../node_modules/.pnpm/pg-connection-string@2.6.4/node_modules/pg-connection-string/index.js"(exports, module2) {
1419
1426
  "use strict";
1420
1427
  function parse(str) {
1421
1428
  if (str.charAt(0) === "/") {
@@ -1498,7 +1505,7 @@ var require_pg_connection_string = (0, import_chunk_WWAWV7DQ.__commonJS)({
1498
1505
  }
1499
1506
  });
1500
1507
  var require_connection_parameters = (0, import_chunk_WWAWV7DQ.__commonJS)({
1501
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/connection-parameters.js"(exports, module2) {
1508
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/connection-parameters.js"(exports, module2) {
1502
1509
  "use strict";
1503
1510
  var dns = (0, import_chunk_WWAWV7DQ.__require)("dns");
1504
1511
  var defaults = require_defaults();
@@ -1634,7 +1641,7 @@ var require_connection_parameters = (0, import_chunk_WWAWV7DQ.__commonJS)({
1634
1641
  }
1635
1642
  });
1636
1643
  var require_result = (0, import_chunk_WWAWV7DQ.__commonJS)({
1637
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/result.js"(exports, module2) {
1644
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/result.js"(exports, module2) {
1638
1645
  "use strict";
1639
1646
  var types = require_pg_types();
1640
1647
  var matchRegexp = /^([A-Za-z]+)(?: (\d+))?(?: (\d+))?/;
@@ -1722,7 +1729,7 @@ var require_result = (0, import_chunk_WWAWV7DQ.__commonJS)({
1722
1729
  }
1723
1730
  });
1724
1731
  var require_query = (0, import_chunk_WWAWV7DQ.__commonJS)({
1725
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/query.js"(exports, module2) {
1732
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/query.js"(exports, module2) {
1726
1733
  "use strict";
1727
1734
  var { EventEmitter } = (0, import_chunk_WWAWV7DQ.__require)("events");
1728
1735
  var Result = require_result();
@@ -1736,7 +1743,6 @@ var require_query = (0, import_chunk_WWAWV7DQ.__commonJS)({
1736
1743
  this.rows = config.rows;
1737
1744
  this.types = config.types;
1738
1745
  this.name = config.name;
1739
- this.queryMode = config.queryMode;
1740
1746
  this.binary = config.binary;
1741
1747
  this.portal = config.portal || "";
1742
1748
  this.callback = config.callback;
@@ -1749,9 +1755,6 @@ var require_query = (0, import_chunk_WWAWV7DQ.__commonJS)({
1749
1755
  this._canceledDueToError = false;
1750
1756
  }
1751
1757
  requiresPreparation() {
1752
- if (this.queryMode === "extended") {
1753
- return true;
1754
- }
1755
1758
  if (this.name) {
1756
1759
  return true;
1757
1760
  }
@@ -1771,7 +1774,7 @@ var require_query = (0, import_chunk_WWAWV7DQ.__commonJS)({
1771
1774
  if (!Array.isArray(this._results)) {
1772
1775
  this._results = [this._result];
1773
1776
  }
1774
- this._result = new Result(this._rowMode, this._result._types);
1777
+ this._result = new Result(this._rowMode, this.types);
1775
1778
  this._results.push(this._result);
1776
1779
  }
1777
1780
  }
@@ -1913,7 +1916,7 @@ var require_query = (0, import_chunk_WWAWV7DQ.__commonJS)({
1913
1916
  }
1914
1917
  });
1915
1918
  var require_messages = (0, import_chunk_WWAWV7DQ.__commonJS)({
1916
- "../../node_modules/.pnpm/pg-protocol@1.7.1/node_modules/pg-protocol/dist/messages.js"(exports) {
1919
+ "../../node_modules/.pnpm/pg-protocol@1.6.1/node_modules/pg-protocol/dist/messages.js"(exports) {
1917
1920
  "use strict";
1918
1921
  Object.defineProperty(exports, "__esModule", { value: true });
1919
1922
  exports.NoticeMessage = exports.DataRowMessage = exports.CommandCompleteMessage = exports.ReadyForQueryMessage = exports.NotificationResponseMessage = exports.BackendKeyDataMessage = exports.AuthenticationMD5Password = exports.ParameterStatusMessage = exports.ParameterDescriptionMessage = exports.RowDescriptionMessage = exports.Field = exports.CopyResponse = exports.CopyDataMessage = exports.DatabaseError = exports.copyDone = exports.emptyQuery = exports.replicationStart = exports.portalSuspended = exports.noData = exports.closeComplete = exports.bindComplete = exports.parseComplete = void 0;
@@ -2076,7 +2079,7 @@ var require_messages = (0, import_chunk_WWAWV7DQ.__commonJS)({
2076
2079
  }
2077
2080
  });
2078
2081
  var require_buffer_writer = (0, import_chunk_WWAWV7DQ.__commonJS)({
2079
- "../../node_modules/.pnpm/pg-protocol@1.7.1/node_modules/pg-protocol/dist/buffer-writer.js"(exports) {
2082
+ "../../node_modules/.pnpm/pg-protocol@1.6.1/node_modules/pg-protocol/dist/buffer-writer.js"(exports) {
2080
2083
  "use strict";
2081
2084
  Object.defineProperty(exports, "__esModule", { value: true });
2082
2085
  exports.Writer = void 0;
@@ -2155,7 +2158,7 @@ var require_buffer_writer = (0, import_chunk_WWAWV7DQ.__commonJS)({
2155
2158
  }
2156
2159
  });
2157
2160
  var require_serializer = (0, import_chunk_WWAWV7DQ.__commonJS)({
2158
- "../../node_modules/.pnpm/pg-protocol@1.7.1/node_modules/pg-protocol/dist/serializer.js"(exports) {
2161
+ "../../node_modules/.pnpm/pg-protocol@1.6.1/node_modules/pg-protocol/dist/serializer.js"(exports) {
2159
2162
  "use strict";
2160
2163
  Object.defineProperty(exports, "__esModule", { value: true });
2161
2164
  exports.serialize = void 0;
@@ -2369,7 +2372,7 @@ var require_serializer = (0, import_chunk_WWAWV7DQ.__commonJS)({
2369
2372
  }
2370
2373
  });
2371
2374
  var require_buffer_reader = (0, import_chunk_WWAWV7DQ.__commonJS)({
2372
- "../../node_modules/.pnpm/pg-protocol@1.7.1/node_modules/pg-protocol/dist/buffer-reader.js"(exports) {
2375
+ "../../node_modules/.pnpm/pg-protocol@1.6.1/node_modules/pg-protocol/dist/buffer-reader.js"(exports) {
2373
2376
  "use strict";
2374
2377
  Object.defineProperty(exports, "__esModule", { value: true });
2375
2378
  exports.BufferReader = void 0;
@@ -2399,11 +2402,6 @@ var require_buffer_reader = (0, import_chunk_WWAWV7DQ.__commonJS)({
2399
2402
  this.offset += 4;
2400
2403
  return result;
2401
2404
  }
2402
- uint32() {
2403
- const result = this.buffer.readUInt32BE(this.offset);
2404
- this.offset += 4;
2405
- return result;
2406
- }
2407
2405
  string(length) {
2408
2406
  const result = this.buffer.toString(this.encoding, this.offset, this.offset + length);
2409
2407
  this.offset += length;
@@ -2427,7 +2425,7 @@ var require_buffer_reader = (0, import_chunk_WWAWV7DQ.__commonJS)({
2427
2425
  }
2428
2426
  });
2429
2427
  var require_parser = (0, import_chunk_WWAWV7DQ.__commonJS)({
2430
- "../../node_modules/.pnpm/pg-protocol@1.7.1/node_modules/pg-protocol/dist/parser.js"(exports) {
2428
+ "../../node_modules/.pnpm/pg-protocol@1.6.1/node_modules/pg-protocol/dist/parser.js"(exports) {
2431
2429
  "use strict";
2432
2430
  Object.defineProperty(exports, "__esModule", { value: true });
2433
2431
  exports.Parser = void 0;
@@ -2598,9 +2596,9 @@ var require_parser = (0, import_chunk_WWAWV7DQ.__commonJS)({
2598
2596
  }
2599
2597
  parseField() {
2600
2598
  const name = this.reader.cstring();
2601
- const tableID = this.reader.uint32();
2599
+ const tableID = this.reader.int32();
2602
2600
  const columnID = this.reader.int16();
2603
- const dataTypeID = this.reader.uint32();
2601
+ const dataTypeID = this.reader.int32();
2604
2602
  const dataTypeSize = this.reader.int16();
2605
2603
  const dataTypeModifier = this.reader.int32();
2606
2604
  const mode = this.reader.int16() === 0 ? "text" : "binary";
@@ -2716,7 +2714,7 @@ var require_parser = (0, import_chunk_WWAWV7DQ.__commonJS)({
2716
2714
  }
2717
2715
  });
2718
2716
  var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
2719
- "../../node_modules/.pnpm/pg-protocol@1.7.1/node_modules/pg-protocol/dist/index.js"(exports) {
2717
+ "../../node_modules/.pnpm/pg-protocol@1.6.1/node_modules/pg-protocol/dist/index.js"(exports) {
2720
2718
  "use strict";
2721
2719
  Object.defineProperty(exports, "__esModule", { value: true });
2722
2720
  exports.DatabaseError = exports.serialize = exports.parse = void 0;
@@ -2749,73 +2747,32 @@ var init_empty = (0, import_chunk_WWAWV7DQ.__esm)({
2749
2747
  }
2750
2748
  });
2751
2749
  var require_stream = (0, import_chunk_WWAWV7DQ.__commonJS)({
2752
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/stream.js"(exports, module2) {
2750
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/stream.js"(exports, module2) {
2753
2751
  "use strict";
2754
- var { getStream, getSecureStream } = getStreamFuncs();
2755
- module2.exports = {
2756
- /**
2757
- * Get a socket stream compatible with the current runtime environment.
2758
- * @returns {Duplex}
2759
- */
2760
- getStream,
2761
- /**
2762
- * Get a TLS secured socket, compatible with the current environment,
2763
- * using the socket and other settings given in `options`.
2764
- * @returns {Duplex}
2765
- */
2766
- getSecureStream
2767
- };
2768
- function getNodejsStreamFuncs() {
2769
- function getStream2(ssl) {
2770
- const net = (0, import_chunk_WWAWV7DQ.__require)("net");
2752
+ module2.exports.getStream = function getStream(ssl) {
2753
+ const net = (0, import_chunk_WWAWV7DQ.__require)("net");
2754
+ if (typeof net.Socket === "function") {
2771
2755
  return new net.Socket();
2772
- }
2773
- function getSecureStream2(options) {
2774
- var tls = (0, import_chunk_WWAWV7DQ.__require)("tls");
2775
- return tls.connect(options);
2776
- }
2777
- return {
2778
- getStream: getStream2,
2779
- getSecureStream: getSecureStream2
2780
- };
2781
- }
2782
- function getCloudflareStreamFuncs() {
2783
- function getStream2(ssl) {
2756
+ } else {
2784
2757
  const { CloudflareSocket } = (init_empty(), (0, import_chunk_WWAWV7DQ.__toCommonJS)(empty_exports));
2785
2758
  return new CloudflareSocket(ssl);
2786
2759
  }
2787
- function getSecureStream2(options) {
2760
+ };
2761
+ module2.exports.getSecureStream = function getSecureStream(options) {
2762
+ var tls = (0, import_chunk_WWAWV7DQ.__require)("tls");
2763
+ if (tls.connect) {
2764
+ return tls.connect(options);
2765
+ } else {
2788
2766
  options.socket.startTls(options);
2789
2767
  return options.socket;
2790
2768
  }
2791
- return {
2792
- getStream: getStream2,
2793
- getSecureStream: getSecureStream2
2794
- };
2795
- }
2796
- function isCloudflareRuntime() {
2797
- if (typeof navigator === "object" && navigator !== null && typeof navigator.userAgent === "string") {
2798
- return navigator.userAgent === "Cloudflare-Workers";
2799
- }
2800
- if (typeof Response === "function") {
2801
- const resp = new Response(null, { cf: { thing: true } });
2802
- if (typeof resp.cf === "object" && resp.cf !== null && resp.cf.thing) {
2803
- return true;
2804
- }
2805
- }
2806
- return false;
2807
- }
2808
- function getStreamFuncs() {
2809
- if (isCloudflareRuntime()) {
2810
- return getCloudflareStreamFuncs();
2811
- }
2812
- return getNodejsStreamFuncs();
2813
- }
2769
+ };
2814
2770
  }
2815
2771
  });
2816
2772
  var require_connection = (0, import_chunk_WWAWV7DQ.__commonJS)({
2817
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/connection.js"(exports, module2) {
2773
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/connection.js"(exports, module2) {
2818
2774
  "use strict";
2775
+ var net = (0, import_chunk_WWAWV7DQ.__require)("net");
2819
2776
  var EventEmitter = (0, import_chunk_WWAWV7DQ.__require)("events").EventEmitter;
2820
2777
  var { parse, serialize } = require_dist();
2821
2778
  var { getStream, getSecureStream } = require_stream();
@@ -2889,8 +2846,8 @@ var require_connection = (0, import_chunk_WWAWV7DQ.__commonJS)({
2889
2846
  options.key = self.ssl.key;
2890
2847
  }
2891
2848
  }
2892
- var net = (0, import_chunk_WWAWV7DQ.__require)("net");
2893
- if (net.isIP && net.isIP(host) === 0) {
2849
+ var net2 = (0, import_chunk_WWAWV7DQ.__require)("net");
2850
+ if (net2.isIP && net2.isIP(host) === 0) {
2894
2851
  options.servername = host;
2895
2852
  }
2896
2853
  try {
@@ -2996,7 +2953,7 @@ var require_connection = (0, import_chunk_WWAWV7DQ.__commonJS)({
2996
2953
  }
2997
2954
  });
2998
2955
  var require_split2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
2999
- "../../node_modules/.pnpm/split2@4.2.0/node_modules/split2/index.js"(exports, module2) {
2956
+ "../../node_modules/.pnpm/split2@4.1.0/node_modules/split2/index.js"(exports, module2) {
3000
2957
  "use strict";
3001
2958
  var { Transform } = (0, import_chunk_WWAWV7DQ.__require)("stream");
3002
2959
  var { StringDecoder } = (0, import_chunk_WWAWV7DQ.__require)("string_decoder");
@@ -3057,7 +3014,7 @@ var require_split2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
3057
3014
  if (typeof matcher === "function") {
3058
3015
  mapper = matcher;
3059
3016
  matcher = /\r?\n/;
3060
- } else if (typeof matcher === "object" && !(matcher instanceof RegExp) && !matcher[Symbol.split]) {
3017
+ } else if (typeof matcher === "object" && !(matcher instanceof RegExp)) {
3061
3018
  options = matcher;
3062
3019
  matcher = /\r?\n/;
3063
3020
  }
@@ -3283,7 +3240,7 @@ var require_lib = (0, import_chunk_WWAWV7DQ.__commonJS)({
3283
3240
  }
3284
3241
  });
3285
3242
  var require_client = (0, import_chunk_WWAWV7DQ.__commonJS)({
3286
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/client.js"(exports, module2) {
3243
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/client.js"(exports, module2) {
3287
3244
  "use strict";
3288
3245
  var EventEmitter = (0, import_chunk_WWAWV7DQ.__require)("events").EventEmitter;
3289
3246
  var utils = require_utils();
@@ -3362,6 +3319,7 @@ var require_client = (0, import_chunk_WWAWV7DQ.__commonJS)({
3362
3319
  return;
3363
3320
  }
3364
3321
  this._connecting = true;
3322
+ this.connectionTimeoutHandle;
3365
3323
  if (this._connectionTimeoutMillis > 0) {
3366
3324
  this.connectionTimeoutHandle = setTimeout(() => {
3367
3325
  con._ending = true;
@@ -3590,19 +3548,9 @@ var require_client = (0, import_chunk_WWAWV7DQ.__commonJS)({
3590
3548
  this.activeQuery.handleEmptyQuery(this.connection);
3591
3549
  }
3592
3550
  _handleCommandComplete(msg) {
3593
- if (this.activeQuery == null) {
3594
- const error = new Error("Received unexpected commandComplete message from backend.");
3595
- this._handleErrorEvent(error);
3596
- return;
3597
- }
3598
3551
  this.activeQuery.handleCommandComplete(msg, this.connection);
3599
3552
  }
3600
- _handleParseComplete() {
3601
- if (this.activeQuery == null) {
3602
- const error = new Error("Received unexpected parseComplete message from backend.");
3603
- this._handleErrorEvent(error);
3604
- return;
3605
- }
3553
+ _handleParseComplete(msg) {
3606
3554
  if (this.activeQuery.name) {
3607
3555
  this.connection.parsedStatements[this.activeQuery.name] = this.activeQuery.text;
3608
3556
  }
@@ -3711,7 +3659,7 @@ var require_client = (0, import_chunk_WWAWV7DQ.__commonJS)({
3711
3659
  query.callback = query.callback || values;
3712
3660
  }
3713
3661
  } else {
3714
- readTimeout = config.query_timeout || this.connectionParameters.query_timeout;
3662
+ readTimeout = this.connectionParameters.query_timeout;
3715
3663
  query = new Query(config, values, callback);
3716
3664
  if (!query.callback) {
3717
3665
  result = new this._Promise((resolve, reject) => {
@@ -3799,7 +3747,7 @@ var require_client = (0, import_chunk_WWAWV7DQ.__commonJS)({
3799
3747
  }
3800
3748
  });
3801
3749
  var require_pg_pool = (0, import_chunk_WWAWV7DQ.__commonJS)({
3802
- "../../node_modules/.pnpm/pg-pool@3.7.1_pg@8.13.3/node_modules/pg-pool/index.js"(exports, module2) {
3750
+ "../../node_modules/.pnpm/pg-pool@3.6.2_pg@8.11.5/node_modules/pg-pool/index.js"(exports, module2) {
3803
3751
  "use strict";
3804
3752
  var EventEmitter = (0, import_chunk_WWAWV7DQ.__require)("events").EventEmitter;
3805
3753
  var NOOP = function() {
@@ -3995,7 +3943,7 @@ var require_pg_pool = (0, import_chunk_WWAWV7DQ.__commonJS)({
3995
3943
  this.log("client failed to connect", err);
3996
3944
  this._clients = this._clients.filter((c) => c !== client);
3997
3945
  if (timeoutHit) {
3998
- err = new Error("Connection terminated due to connection timeout", { cause: err });
3946
+ err.message = "Connection terminated due to connection timeout";
3999
3947
  }
4000
3948
  this._pulseQueue();
4001
3949
  if (!pendingItem.timedOut) {
@@ -4180,7 +4128,7 @@ var require_pg_pool = (0, import_chunk_WWAWV7DQ.__commonJS)({
4180
4128
  }
4181
4129
  });
4182
4130
  var require_query2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
4183
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/native/query.js"(exports, module2) {
4131
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/native/query.js"(exports, module2) {
4184
4132
  "use strict";
4185
4133
  var EventEmitter = (0, import_chunk_WWAWV7DQ.__require)("events").EventEmitter;
4186
4134
  var util = (0, import_chunk_WWAWV7DQ.__require)("util");
@@ -4191,7 +4139,6 @@ var require_query2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
4191
4139
  this.text = config.text;
4192
4140
  this.values = config.values;
4193
4141
  this.name = config.name;
4194
- this.queryMode = config.queryMode;
4195
4142
  this.callback = config.callback;
4196
4143
  this.state = "new";
4197
4144
  this._arrayMode = config.rowMode === "array";
@@ -4311,8 +4258,6 @@ var require_query2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
4311
4258
  }
4312
4259
  var vals = this.values.map(utils.prepareValue);
4313
4260
  client.native.query(this.text, vals, after);
4314
- } else if (this.queryMode === "extended") {
4315
- client.native.query(this.text, [], after);
4316
4261
  } else {
4317
4262
  client.native.query(this.text, after);
4318
4263
  }
@@ -4320,7 +4265,7 @@ var require_query2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
4320
4265
  }
4321
4266
  });
4322
4267
  var require_client2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
4323
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/native/client.js"(exports, module2) {
4268
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/native/client.js"(exports, module2) {
4324
4269
  "use strict";
4325
4270
  var Native;
4326
4271
  try {
@@ -4439,7 +4384,7 @@ var require_client2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
4439
4384
  config.callback = values;
4440
4385
  }
4441
4386
  } else {
4442
- readTimeout = config.query_timeout || this.connectionParameters.query_timeout;
4387
+ readTimeout = this.connectionParameters.query_timeout;
4443
4388
  query = new NativeQuery(config, values, callback);
4444
4389
  if (!query.callback) {
4445
4390
  let resolveOut, rejectOut;
@@ -4558,13 +4503,13 @@ var require_client2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
4558
4503
  }
4559
4504
  });
4560
4505
  var require_native = (0, import_chunk_WWAWV7DQ.__commonJS)({
4561
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/native/index.js"(exports, module2) {
4506
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/native/index.js"(exports, module2) {
4562
4507
  "use strict";
4563
4508
  module2.exports = require_client2();
4564
4509
  }
4565
4510
  });
4566
4511
  var require_lib2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
4567
- "../../node_modules/.pnpm/pg@8.13.3/node_modules/pg/lib/index.js"(exports, module2) {
4512
+ "../../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/index.js"(exports, module2) {
4568
4513
  "use strict";
4569
4514
  var Client = require_client();
4570
4515
  var defaults = require_defaults();
@@ -26,11 +26,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_6QQKVDTF_exports = {};
30
- __export(chunk_6QQKVDTF_exports, {
29
+ var chunk_AE4MKNFS_exports = {};
30
+ __export(chunk_AE4MKNFS_exports, {
31
31
  MigrateDiff: () => MigrateDiff
32
32
  });
33
- module.exports = __toCommonJS(chunk_6QQKVDTF_exports);
33
+ module.exports = __toCommonJS(chunk_AE4MKNFS_exports);
34
34
  var import_chunk_A6PMXMMT = require("./chunk-A6PMXMMT.js");
35
35
  var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
36
36
  var import_chunk_CTPONE6G = require("./chunk-CTPONE6G.js");
@@ -11135,7 +11135,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
11135
11135
  "../internals/package.json"(exports, module2) {
11136
11136
  module2.exports = {
11137
11137
  name: "@prisma/internals",
11138
- version: "6.5.0-dev.37",
11138
+ version: "6.5.0-dev.38",
11139
11139
  description: "This package is intended for Prisma's internal use",
11140
11140
  main: "dist/index.js",
11141
11141
  types: "dist/index.d.ts",
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var MigrateDiff_exports = {};
20
20
  __export(MigrateDiff_exports, {
21
- MigrateDiff: () => import_chunk_6QQKVDTF.MigrateDiff
21
+ MigrateDiff: () => import_chunk_AE4MKNFS.MigrateDiff
22
22
  });
23
23
  module.exports = __toCommonJS(MigrateDiff_exports);
24
- var import_chunk_6QQKVDTF = require("../chunk-6QQKVDTF.js");
24
+ var import_chunk_AE4MKNFS = require("../chunk-AE4MKNFS.js");
25
25
  var import_chunk_A6PMXMMT = require("../chunk-A6PMXMMT.js");
26
26
  var import_chunk_XRTNIFND = require("../chunk-XRTNIFND.js");
27
27
  var import_chunk_CTPONE6G = require("../chunk-CTPONE6G.js");
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ __export(index_exports, {
29
29
  MigrateCommand: () => import_chunk_WNH2ACJS.MigrateCommand,
30
30
  MigrateDeploy: () => import_chunk_LVLRGTYH.MigrateDeploy,
31
31
  MigrateDev: () => import_chunk_ANZ73E67.MigrateDev,
32
- MigrateDiff: () => import_chunk_6QQKVDTF.MigrateDiff,
32
+ MigrateDiff: () => import_chunk_AE4MKNFS.MigrateDiff,
33
33
  MigrateReset: () => import_chunk_RQFGRXJI.MigrateReset,
34
34
  MigrateResolve: () => import_chunk_TM3ETZES.MigrateResolve,
35
35
  MigrateStatus: () => import_chunk_I4EY55DC.MigrateStatus,
@@ -69,7 +69,7 @@ var import_chunk_V3ZMNXZC = require("./chunk-V3ZMNXZC.js");
69
69
  var import_chunk_255BRND3 = require("./chunk-255BRND3.js");
70
70
  var import_chunk_UP6FVCDK = require("./chunk-UP6FVCDK.js");
71
71
  var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
72
- var import_chunk_6QQKVDTF = require("./chunk-6QQKVDTF.js");
72
+ var import_chunk_AE4MKNFS = require("./chunk-AE4MKNFS.js");
73
73
  var import_chunk_A6PMXMMT = require("./chunk-A6PMXMMT.js");
74
74
  var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
75
75
  var import_chunk_CTPONE6G = require("./chunk-CTPONE6G.js");
@@ -32,12 +32,12 @@ __export(setupCockroach_exports, {
32
32
  tearDownCockroach: () => tearDownCockroach
33
33
  });
34
34
  module.exports = __toCommonJS(setupCockroach_exports);
35
- var import_chunk_EGPJABTW = require("../chunk-EGPJABTW.js");
35
+ var import_chunk_73OPZA7N = require("../chunk-73OPZA7N.js");
36
36
  var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
37
37
  var import_internals = require("@prisma/internals");
38
38
  var import_fs = __toESM(require("fs"));
39
39
  var import_path = __toESM(require("path"));
40
- var import_pg = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_EGPJABTW.require_lib)());
40
+ var import_pg = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_73OPZA7N.require_lib)());
41
41
  async function setupCockroach(options) {
42
42
  const { connectionString } = options;
43
43
  const { dirname } = options;
@@ -33,12 +33,12 @@ __export(setupPostgres_exports, {
33
33
  tearDownPostgres: () => tearDownPostgres
34
34
  });
35
35
  module.exports = __toCommonJS(setupPostgres_exports);
36
- var import_chunk_EGPJABTW = require("../chunk-EGPJABTW.js");
36
+ var import_chunk_73OPZA7N = require("../chunk-73OPZA7N.js");
37
37
  var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
38
38
  var import_promises = __toESM(require("node:fs/promises"));
39
39
  var import_node_path = __toESM(require("node:path"));
40
40
  var import_internals = require("@prisma/internals");
41
- var import_pg = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_EGPJABTW.require_lib)());
41
+ var import_pg = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_73OPZA7N.require_lib)());
42
42
  async function setupPostgres(options) {
43
43
  const { connectionString } = options;
44
44
  const { dirname } = options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/migrate",
3
- "version": "6.5.0-dev.37",
3
+ "version": "6.5.0-dev.38",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/migrate/src/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "@swc/jest": "0.2.37",
23
23
  "@types/jest": "29.5.14",
24
24
  "@types/node": "18.19.76",
25
- "@types/pg": "8.11.11",
25
+ "@types/pg": "8.11.6",
26
26
  "@types/prompts": "2.4.9",
27
27
  "@types/sqlite3": "3.1.11",
28
28
  "arg": "5.0.2",
@@ -41,7 +41,7 @@
41
41
  "mongoose": "8.9.5",
42
42
  "mssql": "11.0.1",
43
43
  "ora": "5.4.1",
44
- "pg": "8.13.3",
44
+ "pg": "8.11.5",
45
45
  "pkg-up": "3.1.0",
46
46
  "strip-ansi": "6.0.1",
47
47
  "strip-indent": "3.0.0",
@@ -57,11 +57,11 @@
57
57
  "dependencies": {
58
58
  "@prisma/engines-version": "6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d",
59
59
  "prompts": "2.4.2",
60
- "@prisma/config": "6.5.0-dev.37",
61
- "@prisma/debug": "6.5.0-dev.37",
62
- "@prisma/get-platform": "6.5.0-dev.37",
63
- "@prisma/generator-helper": "6.5.0-dev.37",
64
- "@prisma/internals": "6.5.0-dev.37"
60
+ "@prisma/config": "6.5.0-dev.38",
61
+ "@prisma/debug": "6.5.0-dev.38",
62
+ "@prisma/generator-helper": "6.5.0-dev.38",
63
+ "@prisma/internals": "6.5.0-dev.38",
64
+ "@prisma/get-platform": "6.5.0-dev.38"
65
65
  },
66
66
  "files": [
67
67
  "README.md",