@prisma/migrate 6.3.0-dev.2 → 6.3.0-dev.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/Migrate.js +3 -3
  2. package/dist/bin.js +29 -29
  3. package/dist/{chunk-RCPXHNHW.js → chunk-4RGXNW3L.js} +12 -12
  4. package/dist/{chunk-UI76O6B2.js → chunk-BMHH2WUY.js} +6 -6
  5. package/dist/{chunk-SKG7WAPK.js → chunk-FJQ73ORG.js} +12 -12
  6. package/dist/{chunk-NCDRH4BH.js → chunk-H3UYLUNG.js} +7 -5
  7. package/dist/{chunk-MBLWML5Q.js → chunk-MOTXHF3A.js} +6 -6
  8. package/dist/{chunk-4NDZU7KV.js → chunk-Q5KENGJU.js} +12 -11
  9. package/dist/{chunk-BQXAMKF7.js → chunk-Q7P4QXBI.js} +10 -10
  10. package/dist/{chunk-3EBHV6P7.js → chunk-SR3XX66X.js} +11 -11
  11. package/dist/{chunk-KX5GI2BM.js → chunk-VYDT2HGZ.js} +10 -10
  12. package/dist/{chunk-ET2H4E2O.js → chunk-VZBP3FDY.js} +11 -11
  13. package/dist/{chunk-ANUZSBFY.js → chunk-WEF5VDTU.js} +11 -11
  14. package/dist/{chunk-RYWEOVLN.js → chunk-WJT3IOMB.js} +6 -6
  15. package/dist/{chunk-KEBB7UIB.js → chunk-XJQP3B4W.js} +5 -3
  16. package/dist/commands/DbDrop.js +3 -3
  17. package/dist/commands/DbExecute.js +4 -4
  18. package/dist/commands/DbPull.js +4 -4
  19. package/dist/commands/DbPush.js +5 -5
  20. package/dist/commands/MigrateDeploy.js +5 -5
  21. package/dist/commands/MigrateDev.js +5 -5
  22. package/dist/commands/MigrateDiff.js +4 -4
  23. package/dist/commands/MigrateReset.js +5 -5
  24. package/dist/commands/MigrateResolve.js +5 -5
  25. package/dist/commands/MigrateStatus.js +5 -5
  26. package/dist/index.js +36 -36
  27. package/dist/internals/src/client/getClientEngineType.d.ts +2 -1
  28. package/dist/internals/src/index.d.ts +1 -0
  29. package/dist/internals/src/utils/prismaPostgres.d.ts +3 -0
  30. package/dist/migrate/src/Migrate.d.ts +2 -1
  31. package/dist/migrate/src/utils/ensureDatabaseExists.d.ts +1 -1
  32. package/dist/migrate/src/utils/printDatasources.d.ts +2 -1
  33. package/dist/utils/ensureDatabaseExists.js +7 -7
  34. package/package.json +7 -7
@@ -1,6 +1,7 @@
1
1
  import { type GetSchemaResult } from '@prisma/internals';
2
2
  import { SchemaEngine } from './SchemaEngine';
3
3
  import type { EngineArgs, EngineResults } from './types';
4
+ import { DatasourceInfo } from './utils/ensureDatabaseExists';
4
5
  export declare class Migrate {
5
6
  engine: SchemaEngine;
6
7
  private schemaPath?;
@@ -26,5 +27,5 @@ export declare class Migrate {
26
27
  push({ force }: {
27
28
  force?: boolean;
28
29
  }): Promise<EngineResults.SchemaPush>;
29
- tryToRunGenerate(): Promise<void>;
30
+ tryToRunGenerate(datasourceInfo: DatasourceInfo): Promise<void>;
30
31
  }
@@ -1,7 +1,7 @@
1
1
  import type { DatabaseCredentials } from '@prisma/internals';
2
2
  import { ConnectorType } from './printDatasources';
3
3
  export type MigrateAction = 'create' | 'apply' | 'unapply' | 'dev' | 'push';
4
- export type PrettyProvider = 'MySQL' | 'PostgreSQL' | 'SQLite' | 'SQL Server' | 'CockroachDB' | 'MongoDB';
4
+ export type PrettyProvider = 'MySQL' | 'PostgreSQL' | 'Prisma Postgres' | 'SQLite' | 'SQL Server' | 'CockroachDB' | 'MongoDB';
5
5
  export type DatasourceInfo = {
6
6
  name?: string;
7
7
  prettyProvider?: PrettyProvider;
@@ -1,4 +1,5 @@
1
- export type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'sqlserver' | 'cockroachdb';
1
+ import type { ConnectorType } from '@prisma/generator-helper';
2
+ export type { ConnectorType };
2
3
  export interface GeneratorConfig {
3
4
  name: string;
4
5
  output: string | null;
@@ -18,15 +18,15 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var ensureDatabaseExists_exports = {};
20
20
  __export(ensureDatabaseExists_exports, {
21
- ensureCanConnectToDatabase: () => import_chunk_KEBB7UIB.ensureCanConnectToDatabase,
22
- ensureDatabaseExists: () => import_chunk_KEBB7UIB.ensureDatabaseExists,
23
- getDatasourceInfo: () => import_chunk_KEBB7UIB.getDatasourceInfo,
24
- getDbLocation: () => import_chunk_KEBB7UIB.getDbLocation,
25
- prettifyProvider: () => import_chunk_KEBB7UIB.prettifyProvider
21
+ ensureCanConnectToDatabase: () => import_chunk_XJQP3B4W.ensureCanConnectToDatabase,
22
+ ensureDatabaseExists: () => import_chunk_XJQP3B4W.ensureDatabaseExists,
23
+ getDatasourceInfo: () => import_chunk_XJQP3B4W.getDatasourceInfo,
24
+ getDbLocation: () => import_chunk_XJQP3B4W.getDbLocation,
25
+ prettifyProvider: () => import_chunk_XJQP3B4W.prettifyProvider
26
26
  });
27
27
  module.exports = __toCommonJS(ensureDatabaseExists_exports);
28
- var import_chunk_KEBB7UIB = require("../chunk-KEBB7UIB.js");
28
+ var import_chunk_XJQP3B4W = require("../chunk-XJQP3B4W.js");
29
29
  var import_chunk_KPUNMK5W = require("../chunk-KPUNMK5W.js");
30
30
  var import_chunk_6TE2RIPN = require("../chunk-6TE2RIPN.js");
31
31
  var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
32
- (0, import_chunk_KEBB7UIB.init_ensureDatabaseExists)();
32
+ (0, import_chunk_XJQP3B4W.init_ensureDatabaseExists)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/migrate",
3
- "version": "6.3.0-dev.2",
3
+ "version": "6.3.0-dev.20",
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",
@@ -26,7 +26,7 @@
26
26
  "@types/prompts": "2.4.9",
27
27
  "@types/sqlite3": "3.1.11",
28
28
  "arg": "5.0.2",
29
- "esbuild": "0.24.0",
29
+ "esbuild": "0.24.2",
30
30
  "execa": "5.1.1",
31
31
  "fp-ts": "2.16.9",
32
32
  "fs-jetpack": "5.1.0",
@@ -55,12 +55,12 @@
55
55
  "@prisma/internals": "*"
56
56
  },
57
57
  "dependencies": {
58
- "@prisma/engines-version": "6.2.0-14.4123509d24aa4dede1e864b46351bf2790323b69",
58
+ "@prisma/engines-version": "6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e",
59
59
  "prompts": "2.4.2",
60
- "@prisma/debug": "6.3.0-dev.2",
61
- "@prisma/generator-helper": "6.3.0-dev.2",
62
- "@prisma/internals": "6.3.0-dev.2",
63
- "@prisma/get-platform": "6.3.0-dev.2"
60
+ "@prisma/debug": "6.3.0-dev.20",
61
+ "@prisma/generator-helper": "6.3.0-dev.20",
62
+ "@prisma/get-platform": "6.3.0-dev.20",
63
+ "@prisma/internals": "6.3.0-dev.20"
64
64
  },
65
65
  "files": [
66
66
  "README.md",