@prisma/migrate 7.0.0 → 7.1.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js CHANGED
@@ -51,7 +51,7 @@ var import_chunk_XGTVKL4L = require("./chunk-XGTVKL4L.js");
51
51
  var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
52
52
  var import_chunk_BRPS327A = require("./chunk-BRPS327A.js");
53
53
  var import_chunk_TWPTG4XS = require("./chunk-TWPTG4XS.js");
54
- var import_chunk_WF7UXKO5 = require("./chunk-WF7UXKO5.js");
54
+ var import_chunk_XTEEOIUV = require("./chunk-XTEEOIUV.js");
55
55
  var import_chunk_L7EZFBB4 = require("./chunk-L7EZFBB4.js");
56
56
  var import_chunk_3WDCTXHL = require("./chunk-3WDCTXHL.js");
57
57
  var import_chunk_DYXUXG3K = require("./chunk-DYXUXG3K.js");
@@ -68,7 +68,7 @@ var import_config = require("@prisma/config");
68
68
  var import_debug = __toESM(require("@prisma/debug"));
69
69
  var import_engines_version = require("@prisma/engines-version");
70
70
  var import_internals = require("@prisma/internals");
71
- var version = "7.0.0";
71
+ var version = "7.1.0-dev.2";
72
72
  process.on("uncaughtException", (e) => {
73
73
  console.log(e);
74
74
  });
@@ -102,7 +102,7 @@ async function main() {
102
102
  pull: import_chunk_FEUKQ7J3.DbPull.new(),
103
103
  push: import_chunk_QAOWTYGM.DbPush.new(),
104
104
  // drop: DbDrop.new(),
105
- seed: import_chunk_WF7UXKO5.DbSeed.new()
105
+ seed: import_chunk_XTEEOIUV.DbSeed.new()
106
106
  })
107
107
  });
108
108
  const configFile = args["--config"];
@@ -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_WF7UXKO5_exports = {};
20
- __export(chunk_WF7UXKO5_exports, {
19
+ var chunk_XTEEOIUV_exports = {};
20
+ __export(chunk_XTEEOIUV_exports, {
21
21
  DbSeed: () => DbSeed
22
22
  });
23
- module.exports = __toCommonJS(chunk_WF7UXKO5_exports);
23
+ module.exports = __toCommonJS(chunk_XTEEOIUV_exports);
24
24
  var import_chunk_L7EZFBB4 = require("./chunk-L7EZFBB4.js");
25
25
  var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
26
26
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
@@ -214,7 +214,24 @@ ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db seed -- --arg1 value1 --arg2 va
214
214
  return this.help();
215
215
  }
216
216
  const seedCommand = config.migrations?.seed;
217
- if (!seedCommand) return ``;
217
+ if (!seedCommand) {
218
+ return (0, import_internals.format)(`\u26A0\uFE0F ${(0, import_chunk_SKRR5WT4.bold)("No seed command configured")}
219
+
220
+ To seed your database, add a ${(0, import_chunk_SKRR5WT4.bold)("seed")} property to the ${(0, import_chunk_SKRR5WT4.bold)("migrations")} section in your ${(0, import_chunk_SKRR5WT4.bold)("Prisma config")} file.
221
+
222
+ ${(0, import_chunk_SKRR5WT4.bold)("Example")}
223
+
224
+ ${(0, import_chunk_SKRR5WT4.dim)("// prisma.config.ts")}
225
+ export default defineConfig({
226
+ ${(0, import_chunk_SKRR5WT4.bold)("migrations: {")}
227
+ ${(0, import_chunk_SKRR5WT4.bold)(`seed: 'bun\xB7./prisma/seed.ts'`)},
228
+ ${(0, import_chunk_SKRR5WT4.bold)("}")},
229
+ ${(0, import_chunk_SKRR5WT4.dim)("datasource: {")}
230
+ ${(0, import_chunk_SKRR5WT4.dim)(`url: '[your database URL]'`)},
231
+ ${(0, import_chunk_SKRR5WT4.dim)("}")},
232
+ })
233
+ `);
234
+ }
218
235
  const extraArgs = args._.join(" ");
219
236
  const successfulSeeding = await (0, import_chunk_L7EZFBB4.executeSeedCommand)({ commandFromConfig: seedCommand, extraArgs });
220
237
  if (successfulSeeding) {
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var DbSeed_exports = {};
20
20
  __export(DbSeed_exports, {
21
- DbSeed: () => import_chunk_WF7UXKO5.DbSeed
21
+ DbSeed: () => import_chunk_XTEEOIUV.DbSeed
22
22
  });
23
23
  module.exports = __toCommonJS(DbSeed_exports);
24
- var import_chunk_WF7UXKO5 = require("../chunk-WF7UXKO5.js");
24
+ var import_chunk_XTEEOIUV = require("../chunk-XTEEOIUV.js");
25
25
  var import_chunk_L7EZFBB4 = require("../chunk-L7EZFBB4.js");
26
26
  var import_chunk_3WDCTXHL = require("../chunk-3WDCTXHL.js");
27
27
  var import_chunk_SKRR5WT4 = require("../chunk-SKRR5WT4.js");
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ __export(index_exports, {
23
23
  DbExecute: () => import_chunk_CQ6GMT2G.DbExecute,
24
24
  DbPull: () => import_chunk_FEUKQ7J3.DbPull,
25
25
  DbPush: () => import_chunk_QAOWTYGM.DbPush,
26
- DbSeed: () => import_chunk_WF7UXKO5.DbSeed,
26
+ DbSeed: () => import_chunk_XTEEOIUV.DbSeed,
27
27
  EngineResults: () => import_chunk_LVR7W5DD.EngineResults,
28
28
  Migrate: () => import_chunk_3MCWUFUJ.Migrate,
29
29
  MigrateCommand: () => import_chunk_DYXUXG3K.MigrateCommand,
@@ -73,7 +73,7 @@ var import_chunk_XGTVKL4L = require("./chunk-XGTVKL4L.js");
73
73
  var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
74
74
  var import_chunk_BRPS327A = require("./chunk-BRPS327A.js");
75
75
  var import_chunk_TWPTG4XS = require("./chunk-TWPTG4XS.js");
76
- var import_chunk_WF7UXKO5 = require("./chunk-WF7UXKO5.js");
76
+ var import_chunk_XTEEOIUV = require("./chunk-XTEEOIUV.js");
77
77
  var import_chunk_L7EZFBB4 = require("./chunk-L7EZFBB4.js");
78
78
  var import_chunk_3WDCTXHL = require("./chunk-3WDCTXHL.js");
79
79
  var import_chunk_DYXUXG3K = require("./chunk-DYXUXG3K.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/migrate",
3
- "version": "7.0.0",
3
+ "version": "7.1.0-dev.2",
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",
@@ -44,7 +44,7 @@
44
44
  "tempy": "1.0.1",
45
45
  "ts-pattern": "5.6.2",
46
46
  "typescript": "5.4.5",
47
- "@prisma/adapter-libsql": "7.0.0"
47
+ "@prisma/adapter-libsql": "7.1.0-dev.2"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@prisma/internals": "*"
@@ -52,13 +52,13 @@
52
52
  "dependencies": {
53
53
  "@prisma/engines-version": "6.20.0-16.next-0c19ccc313cf9911a90d99d2ac2eb0280c76c513",
54
54
  "prompts": "2.4.2",
55
- "@prisma/client-generator-registry": "7.0.0",
56
- "@prisma/config": "7.0.0",
57
- "@prisma/debug": "7.0.0",
58
- "@prisma/generator": "7.0.0",
59
- "@prisma/driver-adapter-utils": "7.0.0",
60
- "@prisma/get-platform": "7.0.0",
61
- "@prisma/internals": "7.0.0"
55
+ "@prisma/client-generator-registry": "7.1.0-dev.2",
56
+ "@prisma/debug": "7.1.0-dev.2",
57
+ "@prisma/config": "7.1.0-dev.2",
58
+ "@prisma/generator": "7.1.0-dev.2",
59
+ "@prisma/get-platform": "7.1.0-dev.2",
60
+ "@prisma/driver-adapter-utils": "7.1.0-dev.2",
61
+ "@prisma/internals": "7.1.0-dev.2"
62
62
  },
63
63
  "files": [
64
64
  "README.md",