@prisma/migrate 6.6.0-dev.42 → 6.6.0-dev.50
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 +7 -7
- package/dist/{chunk-TGV6QGEF.js → chunk-QVMYNWAN.js} +191 -37
- package/dist/{chunk-4EPP5QEP.js → chunk-SA6K55XE.js} +24 -74
- package/dist/{chunk-IC2RT2YE.js → chunk-VHHIONLT.js} +25 -75
- package/dist/{chunk-QJT4H5N6.js → chunk-ZJ4IDCRR.js} +4 -4
- package/dist/commands/DbPull.js +3 -3
- package/dist/commands/MigrateDiff.js +3 -3
- package/dist/index.js +7 -10
- package/dist/internals/src/Generator.d.ts +1 -1
- package/dist/internals/src/cli/directoryConfig.d.ts +1 -1
- package/dist/internals/src/cli/getSchema.d.ts +3 -28
- package/dist/internals/src/cli/hashes.d.ts +1 -2
- package/dist/internals/src/cli/schemaContext.d.ts +5 -4
- package/dist/internals/src/client/getClientEngineType.d.ts +1 -1
- package/dist/internals/src/convertCredentials.d.ts +1 -1
- package/dist/internals/src/engine-commands/getConfig.d.ts +1 -1
- package/dist/internals/src/engine-commands/getDmmf.d.ts +2 -1
- package/dist/internals/src/get-generators/getGenerators.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/binaryTypeToEngineType.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/engineTypeToBinaryType.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/fixBinaryTargets.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/getBinaryPathsByVersion.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/getEngineVersionForGenerator.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/printGeneratorConfig.d.ts +1 -1
- package/dist/internals/src/index.d.ts +2 -2
- package/dist/internals/src/types.d.ts +1 -1
- package/dist/internals/src/utils/extractPreviewFeatures.d.ts +1 -1
- package/dist/internals/src/utils/getEnvPaths.d.ts +1 -1
- package/dist/internals/src/utils/parseEnvValue.d.ts +1 -1
- package/dist/migrate/src/index.d.ts +0 -1
- package/dist/migrate/src/types.d.ts +1 -1
- package/dist/migrate/src/utils/createMigration.d.ts +1 -1
- package/dist/migrate/src/utils/ensureDatabaseExists.d.ts +1 -1
- package/dist/migrate/src/utils/introspectSql.d.ts +1 -1
- package/dist/migrate/src/utils/printDatasources.d.ts +1 -1
- package/dist/utils/setupCockroach.js +2 -2
- package/dist/utils/setupMSSQL.js +1 -1
- package/dist/utils/setupPostgres.js +2 -2
- package/package.json +7 -8
- package/dist/chunk-GKDFIHM2.js +0 -45
- package/dist/migrate/src/utils/getSchemaPathAndPrint.d.ts +0 -10
- package/dist/utils/getSchemaPathAndPrint.js +0 -27
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GeneratorConfig } from '@prisma/generator
|
|
1
|
+
import type { GeneratorConfig } from '@prisma/generator';
|
|
2
2
|
export declare function extractPreviewFeatures(generators: GeneratorConfig[]): string[];
|
|
@@ -16,5 +16,4 @@ export { SchemaEngine } from './SchemaEngine';
|
|
|
16
16
|
export * from './types';
|
|
17
17
|
export { default as byline } from './utils/byline';
|
|
18
18
|
export { getDatabaseVersionSafe } from './utils/getDatabaseVersionSafe';
|
|
19
|
-
export { getSchemaPathAndPrint, printSchemaLoadedMessage } from './utils/getSchemaPathAndPrint';
|
|
20
19
|
export { introspectSql, type IntrospectSqlError, type IntrospectSqlInput, type IntrospectSqlResult, } from './utils/introspectSql';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActiveConnectorType, SqlQueryOutput } from '@prisma/generator
|
|
1
|
+
import type { ActiveConnectorType, SqlQueryOutput } from '@prisma/generator';
|
|
2
2
|
import type { MigrateTypes } from '@prisma/internals';
|
|
3
3
|
import type { IntrospectionViewDefinition } from './views/handleViewsIO';
|
|
4
4
|
export interface RpcRequestResponse {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataSource } from '@prisma/generator
|
|
1
|
+
import { DataSource } from '@prisma/generator';
|
|
2
2
|
import type { DatabaseCredentials } from '@prisma/internals';
|
|
3
3
|
import { ConnectorType } from './printDatasources';
|
|
4
4
|
export type MigrateAction = 'create' | 'apply' | 'unapply' | 'dev' | 'push';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SqlQueryOutput } from '@prisma/generator
|
|
1
|
+
import { SqlQueryOutput } from '@prisma/generator';
|
|
2
2
|
import { SchemaContext } from '@prisma/internals';
|
|
3
3
|
import { EngineArgs } from '../types';
|
|
4
4
|
export interface IntrospectSqlInput extends EngineArgs.SqlQueryInput {
|
|
@@ -32,12 +32,12 @@ __export(setupCockroach_exports, {
|
|
|
32
32
|
tearDownCockroach: () => tearDownCockroach
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(setupCockroach_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_chunk_QVMYNWAN = require("../chunk-QVMYNWAN.js");
|
|
36
36
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.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_2ESYSVXG.__toESM)((0,
|
|
40
|
+
var import_pg = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_QVMYNWAN.require_lib)());
|
|
41
41
|
async function setupCockroach(options) {
|
|
42
42
|
const { connectionString } = options;
|
|
43
43
|
const { dirname } = options;
|
package/dist/utils/setupMSSQL.js
CHANGED
|
@@ -32,8 +32,8 @@ __export(setupMSSQL_exports, {
|
|
|
32
32
|
tearDownMSSQL: () => tearDownMSSQL
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(setupMSSQL_exports);
|
|
35
|
-
var import_chunk_5R44VVVX = require("../chunk-5R44VVVX.js");
|
|
36
35
|
var import_chunk_EJUXYFV3 = require("../chunk-EJUXYFV3.js");
|
|
36
|
+
var import_chunk_5R44VVVX = require("../chunk-5R44VVVX.js");
|
|
37
37
|
var import_chunk_ZB5NPOJW = require("../chunk-ZB5NPOJW.js");
|
|
38
38
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|
|
39
39
|
var import_util = __toESM(require("util"));
|
|
@@ -33,12 +33,12 @@ __export(setupPostgres_exports, {
|
|
|
33
33
|
tearDownPostgres: () => tearDownPostgres
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(setupPostgres_exports);
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_QVMYNWAN = require("../chunk-QVMYNWAN.js");
|
|
37
37
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.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_2ESYSVXG.__toESM)((0,
|
|
41
|
+
var import_pg = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_QVMYNWAN.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.6.0-dev.
|
|
3
|
+
"version": "6.6.0-dev.50",
|
|
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",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"mongoose": "8.12.1",
|
|
42
42
|
"mssql": "11.0.1",
|
|
43
43
|
"ora": "8.2.0",
|
|
44
|
-
"pg": "8.
|
|
44
|
+
"pg": "8.14.1",
|
|
45
45
|
"pkg-up": "3.1.0",
|
|
46
46
|
"strip-ansi": "6.0.1",
|
|
47
47
|
"strip-indent": "4.0.0",
|
|
@@ -51,17 +51,16 @@
|
|
|
51
51
|
"wrangler": "3.111.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@prisma/generator-helper": "*",
|
|
55
54
|
"@prisma/internals": "*"
|
|
56
55
|
},
|
|
57
56
|
"dependencies": {
|
|
58
57
|
"@prisma/engines-version": "6.6.0-25.0302bd9e49a13a657a302c060e529d54b08fad04",
|
|
59
58
|
"prompts": "2.4.2",
|
|
60
|
-
"@prisma/
|
|
61
|
-
"@prisma/
|
|
62
|
-
"@prisma/
|
|
63
|
-
"@prisma/
|
|
64
|
-
"@prisma/
|
|
59
|
+
"@prisma/debug": "6.6.0-dev.50",
|
|
60
|
+
"@prisma/config": "6.6.0-dev.50",
|
|
61
|
+
"@prisma/generator": "6.6.0-dev.50",
|
|
62
|
+
"@prisma/get-platform": "6.6.0-dev.50",
|
|
63
|
+
"@prisma/internals": "6.6.0-dev.50"
|
|
65
64
|
},
|
|
66
65
|
"files": [
|
|
67
66
|
"README.md",
|
package/dist/chunk-GKDFIHM2.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var chunk_GKDFIHM2_exports = {};
|
|
30
|
-
__export(chunk_GKDFIHM2_exports, {
|
|
31
|
-
getSchemaPathAndPrint: () => getSchemaPathAndPrint,
|
|
32
|
-
printSchemaLoadedMessage: () => printSchemaLoadedMessage
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(chunk_GKDFIHM2_exports);
|
|
35
|
-
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
36
|
-
var import_internals = require("@prisma/internals");
|
|
37
|
-
var import_path = __toESM(require("path"));
|
|
38
|
-
async function getSchemaPathAndPrint(schemaPathProvided, schemaPathFromConfig, options) {
|
|
39
|
-
const schemaPathResult = await (0, import_internals.getSchemaWithPath)(schemaPathProvided, schemaPathFromConfig, options);
|
|
40
|
-
printSchemaLoadedMessage(schemaPathResult.schemaPath);
|
|
41
|
-
return schemaPathResult;
|
|
42
|
-
}
|
|
43
|
-
function printSchemaLoadedMessage(schemaPath) {
|
|
44
|
-
process.stdout.write((0, import_chunk_SKRR5WT4.dim)(`Prisma schema loaded from ${import_path.default.relative(process.cwd(), schemaPath)}`) + "\n");
|
|
45
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type GetSchemaOptions, type GetSchemaResult, type SchemaPathFromConfig } from '@prisma/internals';
|
|
2
|
-
/**
|
|
3
|
-
* If a path is provided checks that it exists or error
|
|
4
|
-
* If no path provided check in default location(s) or error
|
|
5
|
-
* Schema found: print to console its relative path
|
|
6
|
-
*
|
|
7
|
-
* @returns {GetSchemaResult}
|
|
8
|
-
*/
|
|
9
|
-
export declare function getSchemaPathAndPrint(schemaPathProvided?: string, schemaPathFromConfig?: SchemaPathFromConfig, options?: GetSchemaOptions): Promise<GetSchemaResult>;
|
|
10
|
-
export declare function printSchemaLoadedMessage(schemaPath: string): void;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var getSchemaPathAndPrint_exports = {};
|
|
20
|
-
__export(getSchemaPathAndPrint_exports, {
|
|
21
|
-
getSchemaPathAndPrint: () => import_chunk_GKDFIHM2.getSchemaPathAndPrint,
|
|
22
|
-
printSchemaLoadedMessage: () => import_chunk_GKDFIHM2.printSchemaLoadedMessage
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(getSchemaPathAndPrint_exports);
|
|
25
|
-
var import_chunk_GKDFIHM2 = require("../chunk-GKDFIHM2.js");
|
|
26
|
-
var import_chunk_SKRR5WT4 = require("../chunk-SKRR5WT4.js");
|
|
27
|
-
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|