@prisma/migrate 6.4.0-dev.45 → 6.4.0-dev.47

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
@@ -60,7 +60,7 @@ var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.js");
60
60
  var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
61
61
  var import_chunk_6QFE3AWR = require("./chunk-6QFE3AWR.js");
62
62
  var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
63
- var import_chunk_NY7OHC57 = require("./chunk-NY7OHC57.js");
63
+ var import_chunk_YGAPUXV5 = require("./chunk-YGAPUXV5.js");
64
64
  var import_chunk_A6PMXMMT = require("./chunk-A6PMXMMT.js");
65
65
  var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
66
66
  var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
@@ -94,7 +94,7 @@ var require_bin = (0, import_chunk_WWAWV7DQ.__commonJS)({
94
94
  (0, import_chunk_NGDFNKHZ.init_MigrateCommand)();
95
95
  (0, import_chunk_FM4XJBEM.init_MigrateDeploy)();
96
96
  (0, import_chunk_REKABZBY.init_MigrateDev)();
97
- (0, import_chunk_NY7OHC57.init_MigrateDiff)();
97
+ (0, import_chunk_YGAPUXV5.init_MigrateDiff)();
98
98
  (0, import_chunk_EDQWDMXR.init_MigrateReset)();
99
99
  (0, import_chunk_T6Y2635A.init_MigrateResolve)();
100
100
  (0, import_chunk_KW5YM5ZK.init_MigrateStatus)();
@@ -126,7 +126,7 @@ var require_bin = (0, import_chunk_WWAWV7DQ.__commonJS)({
126
126
  resolve: import_chunk_T6Y2635A.MigrateResolve.new(),
127
127
  reset: import_chunk_EDQWDMXR.MigrateReset.new(),
128
128
  deploy: import_chunk_FM4XJBEM.MigrateDeploy.new(),
129
- diff: import_chunk_NY7OHC57.MigrateDiff.new()
129
+ diff: import_chunk_YGAPUXV5.MigrateDiff.new()
130
130
  }),
131
131
  db: import_chunk_L5WSTNST.DbCommand.new({
132
132
  execute: import_chunk_N3AT4GUM.DbExecute.new(),
@@ -26,12 +26,12 @@ 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_MUYL4IOY_exports = {};
30
- __export(chunk_MUYL4IOY_exports, {
29
+ var chunk_4HNI4LJO_exports = {};
30
+ __export(chunk_4HNI4LJO_exports, {
31
31
  MigrateDiff: () => MigrateDiff,
32
32
  init_MigrateDiff: () => init_MigrateDiff
33
33
  });
34
- module.exports = __toCommonJS(chunk_MUYL4IOY_exports);
34
+ module.exports = __toCommonJS(chunk_4HNI4LJO_exports);
35
35
  var import_chunk_A6PMXMMT = require("./chunk-A6PMXMMT.js");
36
36
  var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
37
37
  var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
@@ -6164,6 +6164,7 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
6164
6164
  __export2(index_exports, {
6165
6165
  CompositeFilesResolver: () => CompositeFilesResolver,
6166
6166
  InMemoryFilesResolver: () => InMemoryFilesResolver,
6167
+ ensureType: () => ensureType2,
6167
6168
  loadRelatedSchemaFiles: () => loadRelatedSchemaFiles,
6168
6169
  loadSchemaFiles: () => loadSchemaFiles2,
6169
6170
  realFsResolver: () => realFsResolver,
@@ -6394,6 +6395,24 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
6394
6395
  }
6395
6396
  return void 0;
6396
6397
  }
6398
+ var import_promises3 = __toESM22((0, import_chunk_WWAWV7DQ.__require)("node:fs/promises"));
6399
+ async function ensureType2(entryPath, expectedType) {
6400
+ try {
6401
+ const pathStat = await import_promises3.default.stat(entryPath);
6402
+ if (expectedType === "file" && pathStat.isFile()) {
6403
+ return void 0;
6404
+ }
6405
+ if (expectedType === "directory" && pathStat.isDirectory()) {
6406
+ return void 0;
6407
+ }
6408
+ return { kind: "WrongType", path: entryPath, expectedTypes: [expectedType] };
6409
+ } catch (e) {
6410
+ if (e.code === "ENOENT") {
6411
+ return { kind: "NotFound", path: entryPath, expectedType };
6412
+ }
6413
+ throw e;
6414
+ }
6415
+ }
6397
6416
  }
6398
6417
  });
6399
6418
  async function findUp(name, {
@@ -11920,7 +11939,7 @@ async function getSchemaWithPath(schemaPathFromArgs, { cwd = process.cwd(), argu
11920
11939
  }
11921
11940
  async function readSchemaFromSingleFile(schemaPath) {
11922
11941
  debug2("Reading schema from single file", schemaPath);
11923
- const typeError = await ensureType(schemaPath, "file");
11942
+ const typeError = await (0, import_schema_files_loader.ensureType)(schemaPath, "file");
11924
11943
  if (typeError) {
11925
11944
  return { ok: false, error: typeError };
11926
11945
  }
@@ -11933,7 +11952,7 @@ async function readSchemaFromSingleFile(schemaPath) {
11933
11952
  }
11934
11953
  async function readSchemaFromDirectory(schemaPath) {
11935
11954
  debug2("Reading schema from multiple files", schemaPath);
11936
- const typeError = await ensureType(schemaPath, "directory");
11955
+ const typeError = await (0, import_schema_files_loader.ensureType)(schemaPath, "directory");
11937
11956
  if (typeError) {
11938
11957
  return { ok: false, error: typeError };
11939
11958
  }
@@ -11949,23 +11968,6 @@ async function readSchemaFromDirectory(schemaPath) {
11949
11968
  }
11950
11969
  return { ok: true, schema: { schemaPath, schemaRootDir: schemaPath, schemas: files } };
11951
11970
  }
11952
- async function ensureType(entryPath, expectedType) {
11953
- try {
11954
- const pathStat = await stat(entryPath);
11955
- if (expectedType === "file" && pathStat.isFile()) {
11956
- return void 0;
11957
- }
11958
- if (expectedType === "directory" && pathStat.isDirectory()) {
11959
- return void 0;
11960
- }
11961
- return { kind: "WrongType", path: entryPath, expectedTypes: [expectedType] };
11962
- } catch (e) {
11963
- if (e.code === "ENOENT") {
11964
- return { kind: "NotFound", path: entryPath, expectedType };
11965
- }
11966
- throw e;
11967
- }
11968
- }
11969
11971
  async function readSchemaFromFileOrDirectory(schemaPath) {
11970
11972
  let stats;
11971
11973
  try {
@@ -26,12 +26,12 @@ 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_NY7OHC57_exports = {};
30
- __export(chunk_NY7OHC57_exports, {
29
+ var chunk_YGAPUXV5_exports = {};
30
+ __export(chunk_YGAPUXV5_exports, {
31
31
  MigrateDiff: () => MigrateDiff,
32
32
  init_MigrateDiff: () => init_MigrateDiff
33
33
  });
34
- module.exports = __toCommonJS(chunk_NY7OHC57_exports);
34
+ module.exports = __toCommonJS(chunk_YGAPUXV5_exports);
35
35
  var import_chunk_A6PMXMMT = require("./chunk-A6PMXMMT.js");
36
36
  var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
37
37
  var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
@@ -6164,6 +6164,7 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
6164
6164
  __export2(index_exports, {
6165
6165
  CompositeFilesResolver: () => CompositeFilesResolver,
6166
6166
  InMemoryFilesResolver: () => InMemoryFilesResolver,
6167
+ ensureType: () => ensureType2,
6167
6168
  loadRelatedSchemaFiles: () => loadRelatedSchemaFiles,
6168
6169
  loadSchemaFiles: () => loadSchemaFiles2,
6169
6170
  realFsResolver: () => realFsResolver,
@@ -6394,6 +6395,24 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
6394
6395
  }
6395
6396
  return void 0;
6396
6397
  }
6398
+ var import_promises3 = __toESM22((0, import_chunk_WWAWV7DQ.__require)("node:fs/promises"));
6399
+ async function ensureType2(entryPath, expectedType) {
6400
+ try {
6401
+ const pathStat = await import_promises3.default.stat(entryPath);
6402
+ if (expectedType === "file" && pathStat.isFile()) {
6403
+ return void 0;
6404
+ }
6405
+ if (expectedType === "directory" && pathStat.isDirectory()) {
6406
+ return void 0;
6407
+ }
6408
+ return { kind: "WrongType", path: entryPath, expectedTypes: [expectedType] };
6409
+ } catch (e) {
6410
+ if (e.code === "ENOENT") {
6411
+ return { kind: "NotFound", path: entryPath, expectedType };
6412
+ }
6413
+ throw e;
6414
+ }
6415
+ }
6397
6416
  }
6398
6417
  });
6399
6418
  async function findUp(name, {
@@ -11543,7 +11562,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
11543
11562
  "../internals/package.json"(exports, module2) {
11544
11563
  module2.exports = {
11545
11564
  name: "@prisma/internals",
11546
- version: "6.4.0-dev.45",
11565
+ version: "6.4.0-dev.47",
11547
11566
  description: "This package is intended for Prisma's internal use",
11548
11567
  main: "dist/index.js",
11549
11568
  types: "dist/index.d.ts",
@@ -11920,7 +11939,7 @@ async function getSchemaWithPath(schemaPathFromArgs, { cwd = process.cwd(), argu
11920
11939
  }
11921
11940
  async function readSchemaFromSingleFile(schemaPath) {
11922
11941
  debug2("Reading schema from single file", schemaPath);
11923
- const typeError = await ensureType(schemaPath, "file");
11942
+ const typeError = await (0, import_schema_files_loader.ensureType)(schemaPath, "file");
11924
11943
  if (typeError) {
11925
11944
  return { ok: false, error: typeError };
11926
11945
  }
@@ -11933,7 +11952,7 @@ async function readSchemaFromSingleFile(schemaPath) {
11933
11952
  }
11934
11953
  async function readSchemaFromDirectory(schemaPath) {
11935
11954
  debug2("Reading schema from multiple files", schemaPath);
11936
- const typeError = await ensureType(schemaPath, "directory");
11955
+ const typeError = await (0, import_schema_files_loader.ensureType)(schemaPath, "directory");
11937
11956
  if (typeError) {
11938
11957
  return { ok: false, error: typeError };
11939
11958
  }
@@ -11949,23 +11968,6 @@ async function readSchemaFromDirectory(schemaPath) {
11949
11968
  }
11950
11969
  return { ok: true, schema: { schemaPath, schemaRootDir: schemaPath, schemas: files } };
11951
11970
  }
11952
- async function ensureType(entryPath, expectedType) {
11953
- try {
11954
- const pathStat = await stat(entryPath);
11955
- if (expectedType === "file" && pathStat.isFile()) {
11956
- return void 0;
11957
- }
11958
- if (expectedType === "directory" && pathStat.isDirectory()) {
11959
- return void 0;
11960
- }
11961
- return { kind: "WrongType", path: entryPath, expectedTypes: [expectedType] };
11962
- } catch (e) {
11963
- if (e.code === "ENOENT") {
11964
- return { kind: "NotFound", path: entryPath, expectedType };
11965
- }
11966
- throw e;
11967
- }
11968
- }
11969
11971
  async function readSchemaFromFileOrDirectory(schemaPath) {
11970
11972
  let stats;
11971
11973
  try {
@@ -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_NY7OHC57.MigrateDiff
21
+ MigrateDiff: () => import_chunk_YGAPUXV5.MigrateDiff
22
22
  });
23
23
  module.exports = __toCommonJS(MigrateDiff_exports);
24
- var import_chunk_NY7OHC57 = require("../chunk-NY7OHC57.js");
24
+ var import_chunk_YGAPUXV5 = require("../chunk-YGAPUXV5.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_TKAGMA5K = require("../chunk-TKAGMA5K.js");
@@ -33,4 +33,4 @@ var import_chunk_CQQQ436N = require("../chunk-CQQQ436N.js");
33
33
  var import_chunk_AAATUOV6 = require("../chunk-AAATUOV6.js");
34
34
  var import_chunk_6TE2RIPN = require("../chunk-6TE2RIPN.js");
35
35
  var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
36
- (0, import_chunk_NY7OHC57.init_MigrateDiff)();
36
+ (0, import_chunk_YGAPUXV5.init_MigrateDiff)();
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ __export(index_exports, {
29
29
  MigrateCommand: () => import_chunk_NGDFNKHZ.MigrateCommand,
30
30
  MigrateDeploy: () => import_chunk_FM4XJBEM.MigrateDeploy,
31
31
  MigrateDev: () => import_chunk_REKABZBY.MigrateDev,
32
- MigrateDiff: () => import_chunk_NY7OHC57.MigrateDiff,
32
+ MigrateDiff: () => import_chunk_YGAPUXV5.MigrateDiff,
33
33
  MigrateReset: () => import_chunk_EDQWDMXR.MigrateReset,
34
34
  MigrateResolve: () => import_chunk_T6Y2635A.MigrateResolve,
35
35
  MigrateStatus: () => import_chunk_KW5YM5ZK.MigrateStatus,
@@ -69,7 +69,7 @@ var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.js");
69
69
  var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
70
70
  var import_chunk_6QFE3AWR = require("./chunk-6QFE3AWR.js");
71
71
  var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
72
- var import_chunk_NY7OHC57 = require("./chunk-NY7OHC57.js");
72
+ var import_chunk_YGAPUXV5 = require("./chunk-YGAPUXV5.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_TKAGMA5K = require("./chunk-TKAGMA5K.js");
@@ -98,7 +98,7 @@ var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
98
98
  (0, import_chunk_NGDFNKHZ.init_MigrateCommand)();
99
99
  (0, import_chunk_FM4XJBEM.init_MigrateDeploy)();
100
100
  (0, import_chunk_REKABZBY.init_MigrateDev)();
101
- (0, import_chunk_NY7OHC57.init_MigrateDiff)();
101
+ (0, import_chunk_YGAPUXV5.init_MigrateDiff)();
102
102
  (0, import_chunk_EDQWDMXR.init_MigrateReset)();
103
103
  (0, import_chunk_T6Y2635A.init_MigrateResolve)();
104
104
  (0, import_chunk_KW5YM5ZK.init_MigrateStatus)();
@@ -1,49 +1,11 @@
1
+ import type { GetSchemaResult, LookupResult, SuccessfulLookupResult } from '@prisma/schema-files-loader';
1
2
  import type { MultipleSchemas } from '../utils/schemaFileInput';
2
- type PathType = 'file' | 'directory';
3
- type SuccessfulLookupResult = {
4
- ok: true;
5
- schema: GetSchemaResult;
6
- };
7
- type NonFatalLookupError = {
8
- kind: 'NotFound';
9
- expectedType?: PathType;
10
- path: string;
11
- } | {
12
- kind: 'WrongType';
13
- path: string;
14
- expectedTypes: PathType[];
15
- } | {
16
- kind: 'FolderPreviewNotEnabled';
17
- path: string;
18
- };
19
- type LookupResult = SuccessfulLookupResult | {
20
- ok: false;
21
- error: NonFatalLookupError;
22
- };
23
3
  type PackageJsonLookupResult = SuccessfulLookupResult | {
24
4
  ok: false;
25
5
  error: {
26
6
  kind: 'PackageJsonNotConfigured';
27
7
  };
28
8
  };
29
- export type GetSchemaResult = {
30
- /**
31
- * A path from which schema was loaded
32
- * Can be either folder or a single file
33
- */
34
- schemaPath: string;
35
- /**
36
- * Base dir for all of the schema files.
37
- * In-multi file mode, this is equal to `schemaPath`.
38
- * In single-file mode, this is a parent directory of
39
- * a file
40
- */
41
- schemaRootDir: string;
42
- /**
43
- * All loaded schema files
44
- */
45
- schemas: MultipleSchemas;
46
- };
47
9
  export type GetSchemaOptions = {
48
10
  cwd?: string;
49
11
  argumentName?: string;
@@ -1,9 +1,9 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  /**
3
3
  * Command interface
4
4
  */
5
5
  export interface Command {
6
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
6
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
7
7
  }
8
8
  /**
9
9
  * Commands
@@ -1,6 +1,6 @@
1
1
  export { checkUnsupportedDataProxy } from './cli/checkUnsupportedDataProxy';
2
2
  export { getGeneratorSuccessMessage } from './cli/getGeneratorSuccessMessage';
3
- export { getPrismaConfigFromPackageJson, getSchema, getSchemaDir, type GetSchemaOptions, type GetSchemaResult, getSchemaWithPath, getSchemaWithPathOptional, } from './cli/getSchema';
3
+ export { getPrismaConfigFromPackageJson, getSchema, getSchemaDir, type GetSchemaOptions, getSchemaWithPath, getSchemaWithPathOptional, } from './cli/getSchema';
4
4
  export { getTypescriptVersion } from './cli/getTypescriptVersion';
5
5
  export { getCLIPathHash, getProjectHash } from './cli/hashes';
6
6
  export { unknownCommand } from './cli/Help';
@@ -84,3 +84,4 @@ export * as wasm from './wasm';
84
84
  export type { EnvPaths } from '@prisma/generator-helper';
85
85
  export type { BinaryTarget } from '@prisma/get-platform';
86
86
  export { getBinaryTargetForCurrentPlatform, getNodeAPIName } from '@prisma/get-platform';
87
+ export type { GetSchemaResult } from '@prisma/schema-files-loader';
@@ -1,4 +1,4 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  /**
3
3
  * Read .env file only if next to schema.prisma
4
4
  * .env found: print to console its relative path
@@ -6,5 +6,5 @@ import type { PrismaConfig } from '@prisma/config';
6
6
  export declare function loadEnvFile({ schemaPath, config, printMessage, }: {
7
7
  schemaPath?: string;
8
8
  printMessage?: boolean;
9
- config: PrismaConfig;
9
+ config: PrismaConfigInternal;
10
10
  }): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { GetSchemaResult } from '../cli/getSchema';
1
+ import { GetSchemaResult } from '@prisma/schema-files-loader';
2
2
  import { ConfigMetaFormat } from '../engine-commands';
3
3
  import { MigrateTypes } from '../migrateTypes';
4
4
  import { MultipleSchemas } from './schemaFileInput';
@@ -1,4 +1,4 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  import type { Command, Commands } from '@prisma/internals';
3
3
  import { HelpError } from '@prisma/internals';
4
4
  /**
@@ -9,7 +9,7 @@ export declare class CLI implements Command {
9
9
  private readonly cmds;
10
10
  static new(cmds: Commands): CLI;
11
11
  private constructor();
12
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
12
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
13
13
  help(error?: string): string | HelpError;
14
14
  private static help;
15
15
  }
@@ -1,4 +1,4 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  import type { Command, Commands } from '@prisma/internals';
3
3
  import { HelpError } from '@prisma/internals';
4
4
  export declare class DbCommand implements Command {
@@ -6,6 +6,6 @@ export declare class DbCommand implements Command {
6
6
  static new(cmds: Commands): DbCommand;
7
7
  private static help;
8
8
  private constructor();
9
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
9
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
10
10
  help(error?: string): string | HelpError;
11
11
  }
@@ -1,8 +1,8 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  import { Command, HelpError } from '@prisma/internals';
3
3
  export declare class DbDrop implements Command {
4
4
  static new(): DbDrop;
5
5
  private static help;
6
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
6
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
7
7
  help(error?: string): string | HelpError;
8
8
  }
@@ -1,8 +1,8 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  import { Command, HelpError } from '@prisma/internals';
3
3
  export declare class DbExecute implements Command {
4
4
  static new(): DbExecute;
5
5
  private static help;
6
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
6
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
7
7
  help(error?: string): string | HelpError;
8
8
  }
@@ -1,10 +1,10 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  import { Command, HelpError } from '@prisma/internals';
3
3
  export declare class DbPull implements Command {
4
4
  static new(): DbPull;
5
5
  private static help;
6
6
  private urlToDatasource;
7
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
7
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
8
8
  private getWarningMessage;
9
9
  help(error?: string): string | HelpError;
10
10
  }
@@ -1,8 +1,8 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  import { Command, HelpError } from '@prisma/internals';
3
3
  export declare class DbPush implements Command {
4
4
  static new(): DbPush;
5
5
  private static help;
6
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
6
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
7
7
  help(error?: string): string | HelpError;
8
8
  }
@@ -1,8 +1,8 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  import { Command, HelpError } from '@prisma/internals';
3
3
  export declare class DbSeed implements Command {
4
4
  static new(): DbSeed;
5
5
  private static help;
6
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
6
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
7
7
  help(error?: string): string | HelpError;
8
8
  }
@@ -1,4 +1,4 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  import type { Command, Commands } from '@prisma/internals';
3
3
  import { HelpError } from '@prisma/internals';
4
4
  export declare class MigrateCommand implements Command {
@@ -6,6 +6,6 @@ export declare class MigrateCommand implements Command {
6
6
  static new(cmds: Commands): MigrateCommand;
7
7
  private static help;
8
8
  private constructor();
9
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
9
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
10
10
  help(error?: string): string | HelpError;
11
11
  }
@@ -1,8 +1,8 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  import { Command, HelpError } from '@prisma/internals';
3
3
  export declare class MigrateDeploy implements Command {
4
4
  static new(): MigrateDeploy;
5
5
  private static help;
6
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
6
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
7
7
  help(error?: string): string | HelpError;
8
8
  }
@@ -1,9 +1,9 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  import { Command, HelpError } from '@prisma/internals';
3
3
  export declare class MigrateDev implements Command {
4
4
  static new(): MigrateDev;
5
5
  private static help;
6
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
6
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
7
7
  private confirmReset;
8
8
  help(error?: string): string | HelpError;
9
9
  }
@@ -1,8 +1,8 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  import { Command, HelpError } from '@prisma/internals';
3
3
  export declare class MigrateDiff implements Command {
4
4
  static new(): MigrateDiff;
5
5
  private static help;
6
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
6
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
7
7
  help(error?: string): string | HelpError;
8
8
  }
@@ -1,8 +1,8 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  import { Command, HelpError } from '@prisma/internals';
3
3
  export declare class MigrateReset implements Command {
4
4
  static new(): MigrateReset;
5
5
  private static help;
6
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
6
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
7
7
  help(error?: string): string | HelpError;
8
8
  }
@@ -1,8 +1,8 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  import { Command, HelpError } from '@prisma/internals';
3
3
  export declare class MigrateResolve implements Command {
4
4
  static new(): MigrateResolve;
5
5
  private static help;
6
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
6
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
7
7
  help(error?: string): string | HelpError;
8
8
  }
@@ -1,8 +1,8 @@
1
- import type { PrismaConfig } from '@prisma/config';
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
2
  import { Command, HelpError } from '@prisma/internals';
3
3
  export declare class MigrateStatus implements Command {
4
4
  static new(): MigrateStatus;
5
5
  private static help;
6
- parse(argv: string[], config: PrismaConfig): Promise<string | Error>;
6
+ parse(argv: string[], config: PrismaConfigInternal): Promise<string | Error>;
7
7
  help(error?: string): string | HelpError;
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/migrate",
3
- "version": "6.4.0-dev.45",
3
+ "version": "6.4.0-dev.47",
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",
@@ -57,11 +57,11 @@
57
57
  "dependencies": {
58
58
  "@prisma/engines-version": "6.4.0-22.6b762f68259116818698cc00c29790aebfc0e55e",
59
59
  "prompts": "2.4.2",
60
- "@prisma/config": "6.4.0-dev.45",
61
- "@prisma/debug": "6.4.0-dev.45",
62
- "@prisma/generator-helper": "6.4.0-dev.45",
63
- "@prisma/get-platform": "6.4.0-dev.45",
64
- "@prisma/internals": "6.4.0-dev.45"
60
+ "@prisma/config": "6.4.0-dev.47",
61
+ "@prisma/debug": "6.4.0-dev.47",
62
+ "@prisma/get-platform": "6.4.0-dev.47",
63
+ "@prisma/internals": "6.4.0-dev.47",
64
+ "@prisma/generator-helper": "6.4.0-dev.47"
65
65
  },
66
66
  "files": [
67
67
  "README.md",