@prisma/migrate 6.5.0-dev.1 → 6.5.0-dev.11
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/CLI.js +3 -4
- package/dist/Migrate.js +6 -7
- package/dist/SchemaEngine.js +6 -7
- package/dist/bin.js +116 -146
- package/dist/{chunk-WOOPRG54.js → chunk-255BRND3.js} +7 -14
- package/dist/{chunk-V5LEZ5BX.js → chunk-2NJLJFGC.js} +634 -807
- package/dist/{chunk-75EIHNAH.js → chunk-2NMFKGXM.js} +5 -6
- package/dist/chunk-3WC4XD74.js +98 -0
- package/dist/chunk-4EV2RVXY.js +226 -0
- package/dist/{chunk-YWWOSXMY.js → chunk-4JQIX6O7.js} +7 -15
- package/dist/{chunk-J77IRNPE.js → chunk-5VDXAE53.js} +45 -31
- package/dist/{chunk-M5YNQ2NP.js → chunk-6DFJIBJX.js} +5 -12
- package/dist/{chunk-SGCF5OHF.js → chunk-7CQBDP4H.js} +6 -13
- package/dist/{chunk-7IT2ZO3D.js → chunk-AHJ2N6BJ.js} +3 -9
- package/dist/chunk-CTPONE6G.js +65 -0
- package/dist/{chunk-DUCG3NRP.js → chunk-D74DU52C.js} +633 -806
- package/dist/{chunk-UVNSK22K.js → chunk-DDHPSYC4.js} +122 -130
- package/dist/{chunk-CUDKD32S.js → chunk-DIAO4W7O.js} +11 -17
- package/dist/{chunk-XJQP3B4W.js → chunk-DJMFXNR4.js} +7 -15
- package/dist/{chunk-YD7GG4WS.js → chunk-FRTPDRF2.js} +66 -74
- package/dist/chunk-HIFVDK2U.js +96 -0
- package/dist/chunk-I4EY55DC.js +195 -0
- package/dist/{chunk-WLJHGKMK.js → chunk-IHDN3L3R.js} +7 -8
- package/dist/chunk-J5FHVALZ.js +230 -0
- package/dist/{chunk-INC2OACE.js → chunk-JFKDSUIE.js} +3 -9
- package/dist/{chunk-V7DE6JTG.js → chunk-JZ75RIMZ.js} +3 -9
- package/dist/{chunk-AAATUOV6.js → chunk-L6KOIJJ5.js} +53 -59
- package/dist/{chunk-GN5BY5N2.js → chunk-LGYRZ6CV.js} +4 -10
- package/dist/chunk-LVLRGTYH.js +148 -0
- package/dist/{chunk-CQQQ436N.js → chunk-MATFO4ZW.js} +186 -200
- package/dist/{chunk-IFCV5MY4.js → chunk-OCQGHQED.js} +5 -11
- package/dist/chunk-ORL3LJOT.js +470 -0
- package/dist/chunk-PSYS5XVH.js +335 -0
- package/dist/{chunk-Q7ACZDDT.js → chunk-QOPTDDIH.js} +5 -12
- package/dist/chunk-QTAIWPLH.js +78 -0
- package/dist/{chunk-35LAJN5S.js → chunk-RP2N6UXA.js} +23 -29
- package/dist/chunk-RQFGRXJI.js +174 -0
- package/dist/{chunk-QBK5XTJE.js → chunk-RR6BKMNO.js} +3 -9
- package/dist/{chunk-ILJRJJ3S.js → chunk-RTGQXNX6.js} +3 -9
- package/dist/chunk-SKRR5WT4.js +76 -0
- package/dist/chunk-TM3ETZES.js +153 -0
- package/dist/{chunk-KPUNMK5W.js → chunk-TWPTG4XS.js} +5 -12
- package/dist/{chunk-6QFE3AWR.js → chunk-UP6FVCDK.js} +6 -13
- package/dist/{chunk-YKUZUAXA.js → chunk-V3ZMNXZC.js} +16 -23
- package/dist/chunk-WLPX3672.js +365 -0
- package/dist/chunk-WNH2ACJS.js +122 -0
- package/dist/{chunk-X6XGFLEF.js → chunk-YZVZCC3I.js} +25 -30
- package/dist/commands/DbCommand.js +3 -4
- package/dist/commands/DbDrop.js +9 -9
- package/dist/commands/DbExecute.js +7 -8
- package/dist/commands/DbPull.js +18 -19
- package/dist/commands/DbPush.js +12 -13
- package/dist/commands/DbSeed.js +4 -5
- package/dist/commands/MigrateCommand.js +3 -4
- package/dist/commands/MigrateDeploy.js +13 -14
- package/dist/commands/MigrateDev.js +17 -18
- package/dist/commands/MigrateDiff.js +8 -9
- package/dist/commands/MigrateReset.js +15 -16
- package/dist/commands/MigrateResolve.js +11 -12
- package/dist/commands/MigrateStatus.js +11 -12
- package/dist/index.js +60 -77
- package/dist/internals/src/index.d.ts +3 -0
- package/dist/internals/src/utils/isInContainer.d.ts +5 -0
- package/dist/internals/src/utils/isInNpmLifecycleHook.d.ts +4 -0
- package/dist/internals/src/utils/maybeInGitHook.d.ts +9 -0
- package/dist/migrate/src/commands/MigrateDev.d.ts +1 -1
- package/dist/{multipart-parser-73VM3J4A.js → multipart-parser-NDLECNMN.js} +527 -561
- package/dist/utils/byline.js +5 -6
- package/dist/utils/captureStdout.js +2 -3
- package/dist/utils/countModelsAndTypes.js +2 -3
- package/dist/utils/ensureDatabaseExists.js +8 -9
- package/dist/utils/errors.js +8 -9
- package/dist/utils/flagErrors.js +5 -5
- package/dist/utils/getDatabaseVersionSafe.js +6 -7
- package/dist/utils/getSchemaPathAndPrint.js +4 -5
- package/dist/utils/handleEvaluateDataloss.js +3 -4
- package/dist/utils/introspectSql.js +6 -6
- package/dist/utils/isSchemaEmpty.js +2 -3
- package/dist/utils/printDatasource.js +3 -4
- package/dist/utils/printDatasources.js +3 -4
- package/dist/utils/printFiles.js +5 -6
- package/dist/utils/printIntrospectedSchema.js +2 -3
- package/dist/utils/printMigrationId.js +4 -5
- package/dist/utils/promptForMigrationName.js +2 -3
- package/dist/utils/removeSchemaFiles.js +2 -3
- package/dist/utils/replaceOrAddDatasource.js +2 -3
- package/dist/utils/replaceOrAddDatasource.test.js +7 -8
- package/dist/utils/saveSchemaFiles.js +2 -3
- package/dist/utils/seed.js +6 -7
- package/dist/utils/setupMSSQL.js +13 -13
- package/dist/utils/setupMongo.js +3 -3
- package/dist/utils/spinner.js +2 -3
- package/dist/utils/unixSocket.js +2 -3
- package/dist/views/handleViewsIO.js +2 -3
- package/package.json +7 -7
- package/dist/chunk-26XQQ4AG.js +0 -386
- package/dist/chunk-2RSEPJFX.js +0 -165
- package/dist/chunk-4B2LXK4R.js +0 -207
- package/dist/chunk-4UJBOCZJ.js +0 -130
- package/dist/chunk-5HZLCY6X.js +0 -161
- package/dist/chunk-6TE2RIPN.js +0 -80
- package/dist/chunk-7S3Q4MCN.js +0 -480
- package/dist/chunk-AOX7CJAS.js +0 -234
- package/dist/chunk-FF3526PX.js +0 -279
- package/dist/chunk-FUSFURVP.js +0 -86
- package/dist/chunk-GCTCQLOF.js +0 -365
- package/dist/chunk-K44VNAFW.js +0 -189
- package/dist/chunk-O4BT6W33.js +0 -104
- package/dist/chunk-TKAGMA5K.js +0 -72
- package/dist/chunk-U374EXYQ.js +0 -106
|
@@ -0,0 +1,195 @@
|
|
|
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_I4EY55DC_exports = {};
|
|
30
|
+
__export(chunk_I4EY55DC_exports, {
|
|
31
|
+
MigrateStatus: () => MigrateStatus
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(chunk_I4EY55DC_exports);
|
|
34
|
+
var import_chunk_DDHPSYC4 = require("./chunk-DDHPSYC4.js");
|
|
35
|
+
var import_chunk_6DFJIBJX = require("./chunk-6DFJIBJX.js");
|
|
36
|
+
var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
|
|
37
|
+
var import_chunk_DJMFXNR4 = require("./chunk-DJMFXNR4.js");
|
|
38
|
+
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
39
|
+
var import_debug = __toESM(require("@prisma/debug"));
|
|
40
|
+
var import_internals = require("@prisma/internals");
|
|
41
|
+
var debug = (0, import_debug.default)("prisma:migrate:status");
|
|
42
|
+
var _MigrateStatus = class _MigrateStatus2 {
|
|
43
|
+
static new() {
|
|
44
|
+
return new _MigrateStatus2();
|
|
45
|
+
}
|
|
46
|
+
async parse(argv, config) {
|
|
47
|
+
const args = (0, import_internals.arg)(
|
|
48
|
+
argv,
|
|
49
|
+
{
|
|
50
|
+
"--help": Boolean,
|
|
51
|
+
"-h": "--help",
|
|
52
|
+
"--schema": String,
|
|
53
|
+
"--config": String,
|
|
54
|
+
"--telemetry-information": String
|
|
55
|
+
},
|
|
56
|
+
false
|
|
57
|
+
);
|
|
58
|
+
if ((0, import_internals.isError)(args)) {
|
|
59
|
+
return this.help(args.message);
|
|
60
|
+
}
|
|
61
|
+
await (0, import_internals.checkUnsupportedDataProxy)("migrate status", args, config.schema, true);
|
|
62
|
+
if (args["--help"]) {
|
|
63
|
+
return this.help();
|
|
64
|
+
}
|
|
65
|
+
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
66
|
+
const { schemaPath } = await (0, import_chunk_6DFJIBJX.getSchemaPathAndPrint)(args["--schema"], config.schema);
|
|
67
|
+
(0, import_chunk_QOPTDDIH.printDatasource)({ datasourceInfo: await (0, import_chunk_DJMFXNR4.getDatasourceInfo)({ schemaPath }) });
|
|
68
|
+
const migrate = new import_chunk_DDHPSYC4.Migrate(schemaPath);
|
|
69
|
+
await (0, import_chunk_DJMFXNR4.ensureCanConnectToDatabase)(schemaPath);
|
|
70
|
+
let diagnoseResult;
|
|
71
|
+
let listMigrationDirectoriesResult;
|
|
72
|
+
try {
|
|
73
|
+
diagnoseResult = await migrate.diagnoseMigrationHistory({
|
|
74
|
+
optInToShadowDatabase: false
|
|
75
|
+
});
|
|
76
|
+
debug({ diagnoseResult: JSON.stringify(diagnoseResult, null, 2) });
|
|
77
|
+
listMigrationDirectoriesResult = await migrate.listMigrationDirectories();
|
|
78
|
+
debug({ listMigrationDirectoriesResult });
|
|
79
|
+
} finally {
|
|
80
|
+
migrate.stop();
|
|
81
|
+
}
|
|
82
|
+
process.stdout.write("\n");
|
|
83
|
+
if (listMigrationDirectoriesResult.migrations.length > 0) {
|
|
84
|
+
const migrations = listMigrationDirectoriesResult.migrations;
|
|
85
|
+
process.stdout.write(
|
|
86
|
+
`${migrations.length} migration${migrations.length > 1 ? "s" : ""} found in prisma/migrations
|
|
87
|
+
`
|
|
88
|
+
);
|
|
89
|
+
} else {
|
|
90
|
+
process.stdout.write(`No migration found in prisma/migrations
|
|
91
|
+
`);
|
|
92
|
+
}
|
|
93
|
+
let unappliedMigrations = [];
|
|
94
|
+
if (diagnoseResult.history?.diagnostic === "databaseIsBehind") {
|
|
95
|
+
unappliedMigrations = diagnoseResult.history.unappliedMigrationNames;
|
|
96
|
+
process.stdout.write(
|
|
97
|
+
`Following migration${unappliedMigrations.length > 1 ? "s" : ""} have not yet been applied:
|
|
98
|
+
${unappliedMigrations.join("\n")}
|
|
99
|
+
|
|
100
|
+
To apply migrations in development run ${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExecutor)(`prisma migrate dev`)))}.
|
|
101
|
+
To apply migrations in production run ${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExecutor)(`prisma migrate deploy`)))}.
|
|
102
|
+
`
|
|
103
|
+
);
|
|
104
|
+
process.exit(1);
|
|
105
|
+
} else if (diagnoseResult.history?.diagnostic === "historiesDiverge") {
|
|
106
|
+
console.error(`Your local migration history and the migrations table from your database are different:
|
|
107
|
+
|
|
108
|
+
The last common migration is: ${diagnoseResult.history.lastCommonMigrationName}
|
|
109
|
+
|
|
110
|
+
The migration${diagnoseResult.history.unappliedMigrationNames.length > 1 ? "s" : ""} have not yet been applied:
|
|
111
|
+
${diagnoseResult.history.unappliedMigrationNames.join("\n")}
|
|
112
|
+
|
|
113
|
+
The migration${diagnoseResult.history.unpersistedMigrationNames.length > 1 ? "s" : ""} from the database are not found locally in prisma/migrations:
|
|
114
|
+
${diagnoseResult.history.unpersistedMigrationNames.join("\n")}`);
|
|
115
|
+
process.exit(1);
|
|
116
|
+
}
|
|
117
|
+
if (!diagnoseResult.hasMigrationsTable) {
|
|
118
|
+
if (listMigrationDirectoriesResult.migrations.length === 0) {
|
|
119
|
+
console.error(`The current database is not managed by Prisma Migrate.
|
|
120
|
+
|
|
121
|
+
Read more about how to baseline an existing production database:
|
|
122
|
+
${(0, import_internals.link)("https://pris.ly/d/migrate-baseline")}`);
|
|
123
|
+
process.exit(1);
|
|
124
|
+
} else {
|
|
125
|
+
const migrationId = listMigrationDirectoriesResult.migrations.shift();
|
|
126
|
+
console.error(`The current database is not managed by Prisma Migrate.
|
|
127
|
+
|
|
128
|
+
If you want to keep the current database structure and data and create new migrations, baseline this database with the migration "${migrationId}":
|
|
129
|
+
${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExecutor)(`prisma migrate resolve --applied "${migrationId}"`)))}
|
|
130
|
+
|
|
131
|
+
Read more about how to baseline an existing production database:
|
|
132
|
+
https://pris.ly/d/migrate-baseline`);
|
|
133
|
+
process.exit(1);
|
|
134
|
+
}
|
|
135
|
+
} else if (diagnoseResult.failedMigrationNames.length > 0) {
|
|
136
|
+
const failedMigrations = diagnoseResult.failedMigrationNames;
|
|
137
|
+
console.error(
|
|
138
|
+
`Following migration${failedMigrations.length > 1 ? "s" : ""} have failed:
|
|
139
|
+
${failedMigrations.join("\n")}
|
|
140
|
+
|
|
141
|
+
During development if the failed migration(s) have not been deployed to a production database you can then fix the migration(s) and run ${(0, import_chunk_SKRR5WT4.bold)(
|
|
142
|
+
(0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExecutor)(`prisma migrate dev`))
|
|
143
|
+
)}.
|
|
144
|
+
`
|
|
145
|
+
);
|
|
146
|
+
console.error(`The failed migration(s) can be marked as rolled back or applied:
|
|
147
|
+
|
|
148
|
+
- If you rolled back the migration(s) manually:
|
|
149
|
+
${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExecutor)(`prisma migrate resolve --rolled-back "${failedMigrations[0]}"`)))}
|
|
150
|
+
|
|
151
|
+
- If you fixed the database manually (hotfix):
|
|
152
|
+
${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExecutor)(`prisma migrate resolve --applied "${failedMigrations[0]}"`)))}
|
|
153
|
+
|
|
154
|
+
Read more about how to resolve migration issues in a production database:
|
|
155
|
+
${(0, import_internals.link)("https://pris.ly/d/migrate-resolve")}`);
|
|
156
|
+
process.exit(1);
|
|
157
|
+
} else {
|
|
158
|
+
process.stdout.write("\n");
|
|
159
|
+
if (unappliedMigrations.length === 0) {
|
|
160
|
+
return `Database schema is up to date!`;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return "";
|
|
164
|
+
}
|
|
165
|
+
help(error) {
|
|
166
|
+
if (error) {
|
|
167
|
+
return new import_internals.HelpError(`
|
|
168
|
+
${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.red)(`!`))} ${error}
|
|
169
|
+
${_MigrateStatus2.help}`);
|
|
170
|
+
}
|
|
171
|
+
return _MigrateStatus2.help;
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
_MigrateStatus.help = (0, import_internals.format)(`
|
|
175
|
+
Check the status of your database migrations
|
|
176
|
+
|
|
177
|
+
${(0, import_chunk_SKRR5WT4.bold)("Usage")}
|
|
178
|
+
|
|
179
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate status [options]
|
|
180
|
+
|
|
181
|
+
${(0, import_chunk_SKRR5WT4.bold)("Options")}
|
|
182
|
+
|
|
183
|
+
-h, --help Display this help message
|
|
184
|
+
--config Custom path to your Prisma config file
|
|
185
|
+
--schema Custom path to your Prisma schema
|
|
186
|
+
|
|
187
|
+
${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
188
|
+
|
|
189
|
+
Check the status of your database migrations
|
|
190
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate status
|
|
191
|
+
|
|
192
|
+
Specify a schema
|
|
193
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate status --schema=./schema.prisma
|
|
194
|
+
`);
|
|
195
|
+
var MigrateStatus = _MigrateStatus;
|
|
@@ -16,19 +16,18 @@ 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
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_IHDN3L3R_exports = {};
|
|
20
|
+
__export(chunk_IHDN3L3R_exports, {
|
|
21
21
|
EarlyAccessFlagError: () => EarlyAccessFlagError,
|
|
22
22
|
ExperimentalFlagError: () => ExperimentalFlagError,
|
|
23
23
|
PreviewFlagError: () => PreviewFlagError
|
|
24
24
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
26
|
-
var
|
|
25
|
+
module.exports = __toCommonJS(chunk_IHDN3L3R_exports);
|
|
26
|
+
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
27
27
|
var import_internals = require("@prisma/internals");
|
|
28
|
-
(0, import_chunk_6TE2RIPN.init_colors)();
|
|
29
28
|
var ExperimentalFlagError = class extends Error {
|
|
30
29
|
constructor() {
|
|
31
|
-
super(`Please provide the ${(0,
|
|
30
|
+
super(`Please provide the ${(0, import_chunk_SKRR5WT4.green)("--experimental")} flag to use this command.`);
|
|
32
31
|
}
|
|
33
32
|
};
|
|
34
33
|
(0, import_internals.setClassName)(ExperimentalFlagError, "ExperimentalFlagError");
|
|
@@ -36,7 +35,7 @@ var PreviewFlagError = class extends Error {
|
|
|
36
35
|
constructor() {
|
|
37
36
|
super(
|
|
38
37
|
`This feature is currently in Preview. There may be bugs and it's not recommended to use it in production environments.
|
|
39
|
-
Please provide the ${(0,
|
|
38
|
+
Please provide the ${(0, import_chunk_SKRR5WT4.green)("--preview-feature")} flag to use this command.`
|
|
40
39
|
);
|
|
41
40
|
}
|
|
42
41
|
};
|
|
@@ -45,7 +44,7 @@ var EarlyAccessFlagError = class extends Error {
|
|
|
45
44
|
constructor() {
|
|
46
45
|
super(
|
|
47
46
|
`This feature is currently in Early Access. There may be bugs and it's not recommended to use it in production environments.
|
|
48
|
-
Please provide the ${(0,
|
|
47
|
+
Please provide the ${(0, import_chunk_SKRR5WT4.green)("--early-access")} flag to use this command.`
|
|
49
48
|
);
|
|
50
49
|
}
|
|
51
50
|
};
|
|
@@ -0,0 +1,230 @@
|
|
|
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_J5FHVALZ_exports = {};
|
|
30
|
+
__export(chunk_J5FHVALZ_exports, {
|
|
31
|
+
DbPush: () => DbPush
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(chunk_J5FHVALZ_exports);
|
|
34
|
+
var import_chunk_DDHPSYC4 = require("./chunk-DDHPSYC4.js");
|
|
35
|
+
var import_chunk_3WC4XD74 = require("./chunk-3WC4XD74.js");
|
|
36
|
+
var import_chunk_6DFJIBJX = require("./chunk-6DFJIBJX.js");
|
|
37
|
+
var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
|
|
38
|
+
var import_chunk_DJMFXNR4 = require("./chunk-DJMFXNR4.js");
|
|
39
|
+
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
|
|
40
|
+
var import_internals = require("@prisma/internals");
|
|
41
|
+
var import_prompts = __toESM(require("prompts"));
|
|
42
|
+
var _DbPush = class _DbPush2 {
|
|
43
|
+
static new() {
|
|
44
|
+
return new _DbPush2();
|
|
45
|
+
}
|
|
46
|
+
async parse(argv, config) {
|
|
47
|
+
const args = (0, import_internals.arg)(
|
|
48
|
+
argv,
|
|
49
|
+
{
|
|
50
|
+
"--help": Boolean,
|
|
51
|
+
"-h": "--help",
|
|
52
|
+
"--accept-data-loss": Boolean,
|
|
53
|
+
"--force-reset": Boolean,
|
|
54
|
+
"--skip-generate": Boolean,
|
|
55
|
+
"--schema": String,
|
|
56
|
+
"--config": String,
|
|
57
|
+
"--telemetry-information": String
|
|
58
|
+
},
|
|
59
|
+
false
|
|
60
|
+
);
|
|
61
|
+
if ((0, import_internals.isError)(args)) {
|
|
62
|
+
return this.help(args.message);
|
|
63
|
+
}
|
|
64
|
+
await (0, import_internals.checkUnsupportedDataProxy)("db push", args, config.schema, true);
|
|
65
|
+
if (args["--help"]) {
|
|
66
|
+
return this.help();
|
|
67
|
+
}
|
|
68
|
+
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
|
|
69
|
+
const { schemaPath } = await (0, import_chunk_6DFJIBJX.getSchemaPathAndPrint)(args["--schema"], config.schema);
|
|
70
|
+
const datasourceInfo = await (0, import_chunk_DJMFXNR4.getDatasourceInfo)({ schemaPath });
|
|
71
|
+
(0, import_chunk_QOPTDDIH.printDatasource)({ datasourceInfo });
|
|
72
|
+
const migrate = new import_chunk_DDHPSYC4.Migrate(schemaPath);
|
|
73
|
+
try {
|
|
74
|
+
const wasDbCreated = await (0, import_chunk_DJMFXNR4.ensureDatabaseExists)("push", schemaPath);
|
|
75
|
+
if (wasDbCreated) {
|
|
76
|
+
process.stdout.write("\n" + wasDbCreated + "\n");
|
|
77
|
+
}
|
|
78
|
+
} catch (e) {
|
|
79
|
+
process.stdout.write("\n");
|
|
80
|
+
throw e;
|
|
81
|
+
}
|
|
82
|
+
let wasDatabaseReset = false;
|
|
83
|
+
if (args["--force-reset"]) {
|
|
84
|
+
process.stdout.write("\n");
|
|
85
|
+
try {
|
|
86
|
+
await migrate.reset();
|
|
87
|
+
} catch (e) {
|
|
88
|
+
migrate.stop();
|
|
89
|
+
throw e;
|
|
90
|
+
}
|
|
91
|
+
let successfulResetMsg = `The ${datasourceInfo.prettyProvider} database`;
|
|
92
|
+
if (datasourceInfo.dbName) {
|
|
93
|
+
successfulResetMsg += ` "${datasourceInfo.dbName}"`;
|
|
94
|
+
}
|
|
95
|
+
const schemasLength = datasourceInfo.schemas?.length || 0;
|
|
96
|
+
if (datasourceInfo.schemas && schemasLength > 0) {
|
|
97
|
+
successfulResetMsg += ` schema${schemasLength > 1 ? "s" : ""} "${datasourceInfo.schemas.join(", ")}"`;
|
|
98
|
+
} else if (datasourceInfo.schema) {
|
|
99
|
+
successfulResetMsg += ` schema "${datasourceInfo.schema}"`;
|
|
100
|
+
}
|
|
101
|
+
if (datasourceInfo.dbLocation) {
|
|
102
|
+
successfulResetMsg += ` at "${datasourceInfo.dbLocation}"`;
|
|
103
|
+
}
|
|
104
|
+
successfulResetMsg += ` ${schemasLength > 1 ? "were" : "was"} successfully reset.
|
|
105
|
+
`;
|
|
106
|
+
process.stdout.write(successfulResetMsg);
|
|
107
|
+
wasDatabaseReset = true;
|
|
108
|
+
}
|
|
109
|
+
const before = Math.round(performance.now());
|
|
110
|
+
let migration;
|
|
111
|
+
try {
|
|
112
|
+
migration = await migrate.push({
|
|
113
|
+
force: args["--accept-data-loss"]
|
|
114
|
+
});
|
|
115
|
+
} catch (e) {
|
|
116
|
+
migrate.stop();
|
|
117
|
+
throw e;
|
|
118
|
+
}
|
|
119
|
+
if (migration.unexecutable && migration.unexecutable.length > 0) {
|
|
120
|
+
const messages = [];
|
|
121
|
+
messages.push(`${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.red)("\n\u26A0\uFE0F We found changes that cannot be executed:\n"))}`);
|
|
122
|
+
for (const item of migration.unexecutable) {
|
|
123
|
+
messages.push(` \u2022 ${item}`);
|
|
124
|
+
}
|
|
125
|
+
process.stdout.write("\n");
|
|
126
|
+
migrate.stop();
|
|
127
|
+
throw new Error(`${messages.join("\n")}
|
|
128
|
+
|
|
129
|
+
You may use the --force-reset flag to drop the database before push like ${(0, import_chunk_SKRR5WT4.bold)(
|
|
130
|
+
(0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExecutor)("prisma db push --force-reset"))
|
|
131
|
+
)}
|
|
132
|
+
${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.red)("All data will be lost."))}
|
|
133
|
+
`);
|
|
134
|
+
}
|
|
135
|
+
if (migration.warnings && migration.warnings.length > 0) {
|
|
136
|
+
process.stdout.write((0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.yellow)(`
|
|
137
|
+
\u26A0\uFE0F There might be data loss when applying the changes:
|
|
138
|
+
|
|
139
|
+
`)));
|
|
140
|
+
for (const warning of migration.warnings) {
|
|
141
|
+
process.stdout.write(` \u2022 ${warning}
|
|
142
|
+
|
|
143
|
+
`);
|
|
144
|
+
}
|
|
145
|
+
process.stdout.write("\n");
|
|
146
|
+
if (!args["--accept-data-loss"]) {
|
|
147
|
+
if (!(0, import_internals.canPrompt)()) {
|
|
148
|
+
migrate.stop();
|
|
149
|
+
throw new import_chunk_3WC4XD74.DbPushIgnoreWarningsWithFlagError();
|
|
150
|
+
}
|
|
151
|
+
process.stdout.write("\n");
|
|
152
|
+
const confirmation = await (0, import_prompts.default)({
|
|
153
|
+
type: "confirm",
|
|
154
|
+
name: "value",
|
|
155
|
+
message: `Do you want to ignore the warning(s)?`
|
|
156
|
+
});
|
|
157
|
+
if (!confirmation.value) {
|
|
158
|
+
process.stdout.write("Push cancelled.\n");
|
|
159
|
+
migrate.stop();
|
|
160
|
+
process.exit(130);
|
|
161
|
+
}
|
|
162
|
+
try {
|
|
163
|
+
await migrate.push({
|
|
164
|
+
force: true
|
|
165
|
+
});
|
|
166
|
+
} catch (e) {
|
|
167
|
+
migrate.stop();
|
|
168
|
+
throw e;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
migrate.stop();
|
|
173
|
+
if (!wasDatabaseReset && migration.warnings.length === 0 && migration.executedSteps === 0) {
|
|
174
|
+
process.stdout.write(`
|
|
175
|
+
The database is already in sync with the Prisma schema.
|
|
176
|
+
`);
|
|
177
|
+
} else {
|
|
178
|
+
const migrationTimeMessage = `Done in ${(0, import_internals.formatms)(Math.round(performance.now()) - before)}`;
|
|
179
|
+
const rocketEmoji = process.platform === "win32" ? "" : "\u{1F680} ";
|
|
180
|
+
const migrationSuccessStdMessage = "Your database is now in sync with your Prisma schema.";
|
|
181
|
+
const migrationSuccessMongoMessage = "Your database indexes are now in sync with your Prisma schema.";
|
|
182
|
+
const provider = (0, import_internals.protocolToConnectorType)(`${datasourceInfo.url?.split(":")[0]}:`);
|
|
183
|
+
process.stdout.write(
|
|
184
|
+
`
|
|
185
|
+
${rocketEmoji}${provider === "mongodb" ? migrationSuccessMongoMessage : migrationSuccessStdMessage} ${migrationTimeMessage}
|
|
186
|
+
`
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
if (!process.env.PRISMA_MIGRATE_SKIP_GENERATE && !args["--skip-generate"]) {
|
|
190
|
+
await migrate.tryToRunGenerate(datasourceInfo);
|
|
191
|
+
}
|
|
192
|
+
return ``;
|
|
193
|
+
}
|
|
194
|
+
help(error) {
|
|
195
|
+
if (error) {
|
|
196
|
+
return new import_internals.HelpError(`
|
|
197
|
+
${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.red)(`!`))} ${error}
|
|
198
|
+
${_DbPush2.help}`);
|
|
199
|
+
}
|
|
200
|
+
return _DbPush2.help;
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
_DbPush.help = (0, import_internals.format)(`
|
|
204
|
+
${process.platform === "win32" ? "" : "\u{1F64C} "}Push the state from your Prisma schema to your database
|
|
205
|
+
|
|
206
|
+
${(0, import_chunk_SKRR5WT4.bold)("Usage")}
|
|
207
|
+
|
|
208
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db push [options]
|
|
209
|
+
|
|
210
|
+
${(0, import_chunk_SKRR5WT4.bold)("Options")}
|
|
211
|
+
|
|
212
|
+
-h, --help Display this help message
|
|
213
|
+
--config Custom path to your Prisma config file
|
|
214
|
+
--schema Custom path to your Prisma schema
|
|
215
|
+
--accept-data-loss Ignore data loss warnings
|
|
216
|
+
--force-reset Force a reset of the database before push
|
|
217
|
+
--skip-generate Skip triggering generators (e.g. Prisma Client)
|
|
218
|
+
|
|
219
|
+
${(0, import_chunk_SKRR5WT4.bold)("Examples")}
|
|
220
|
+
|
|
221
|
+
Push the Prisma schema state to the database
|
|
222
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db push
|
|
223
|
+
|
|
224
|
+
Specify a schema
|
|
225
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db push --schema=./schema.prisma
|
|
226
|
+
|
|
227
|
+
Ignore data loss warnings
|
|
228
|
+
${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db push --accept-data-loss
|
|
229
|
+
`);
|
|
230
|
+
var DbPush = _DbPush;
|
|
@@ -16,20 +16,14 @@ 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
|
|
20
|
-
__export(
|
|
21
|
-
init_isSchemaEmpty: () => init_isSchemaEmpty,
|
|
19
|
+
var chunk_JFKDSUIE_exports = {};
|
|
20
|
+
__export(chunk_JFKDSUIE_exports, {
|
|
22
21
|
isSchemaEmpty: () => isSchemaEmpty
|
|
23
22
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
25
|
-
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
23
|
+
module.exports = __toCommonJS(chunk_JFKDSUIE_exports);
|
|
26
24
|
function isSchemaEmpty(schemas) {
|
|
27
25
|
if (!schemas) {
|
|
28
26
|
return true;
|
|
29
27
|
}
|
|
30
28
|
return schemas.files.every((schema) => schema.content.trim() === "");
|
|
31
29
|
}
|
|
32
|
-
var init_isSchemaEmpty = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
33
|
-
"src/utils/isSchemaEmpty.ts"() {
|
|
34
|
-
}
|
|
35
|
-
});
|
|
@@ -26,18 +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
|
|
30
|
-
__export(
|
|
31
|
-
init_removeSchemaFiles: () => init_removeSchemaFiles,
|
|
29
|
+
var chunk_JZ75RIMZ_exports = {};
|
|
30
|
+
__export(chunk_JZ75RIMZ_exports, {
|
|
32
31
|
removeSchemaFiles: () => removeSchemaFiles
|
|
33
32
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
33
|
+
module.exports = __toCommonJS(chunk_JZ75RIMZ_exports);
|
|
36
34
|
var import_promises = __toESM(require("node:fs/promises"));
|
|
37
35
|
async function removeSchemaFiles(files) {
|
|
38
36
|
await Promise.all(files.map(([path]) => import_promises.default.rm(path)));
|
|
39
37
|
}
|
|
40
|
-
var init_removeSchemaFiles = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
41
|
-
"src/utils/removeSchemaFiles.ts"() {
|
|
42
|
-
}
|
|
43
|
-
});
|
|
@@ -26,16 +26,14 @@ 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
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_L6KOIJJ5_exports = {};
|
|
30
|
+
__export(chunk_L6KOIJJ5_exports, {
|
|
31
31
|
LineStream: () => LineStream,
|
|
32
32
|
byline: () => byline,
|
|
33
33
|
createLineStream: () => createLineStream,
|
|
34
|
-
createStream: () => createStream
|
|
35
|
-
init_byline: () => init_byline
|
|
34
|
+
createStream: () => createStream
|
|
36
35
|
});
|
|
37
|
-
module.exports = __toCommonJS(
|
|
38
|
-
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
36
|
+
module.exports = __toCommonJS(chunk_L6KOIJJ5_exports);
|
|
39
37
|
var import_stream = __toESM(require("stream"));
|
|
40
38
|
var import_util = __toESM(require("util"));
|
|
41
39
|
function byline(readStream, options) {
|
|
@@ -74,58 +72,54 @@ function LineStream(options) {
|
|
|
74
72
|
}
|
|
75
73
|
});
|
|
76
74
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
});
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
done();
|
|
117
|
-
};
|
|
118
|
-
LineStream.prototype._flush = function(done) {
|
|
119
|
-
this._pushBuffer(this._chunkEncoding, 0, done);
|
|
120
|
-
};
|
|
121
|
-
LineStream.prototype._reencode = function(line, chunkEncoding) {
|
|
122
|
-
if (this.encoding && this.encoding != chunkEncoding) {
|
|
123
|
-
return Buffer.from(line, chunkEncoding).toString(this.encoding);
|
|
124
|
-
} else if (this.encoding) {
|
|
125
|
-
return line;
|
|
126
|
-
} else {
|
|
127
|
-
return Buffer.from(line, chunkEncoding);
|
|
75
|
+
import_util.default.inherits(LineStream, import_stream.default.Transform);
|
|
76
|
+
LineStream.prototype._transform = function(chunk, encoding, done) {
|
|
77
|
+
encoding = encoding || "utf8";
|
|
78
|
+
if (Buffer.isBuffer(chunk)) {
|
|
79
|
+
if (encoding == "buffer") {
|
|
80
|
+
chunk = chunk.toString();
|
|
81
|
+
encoding = "utf8";
|
|
82
|
+
} else {
|
|
83
|
+
chunk = chunk.toString(encoding);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
this._chunkEncoding = encoding;
|
|
87
|
+
const lines = chunk.split(/\r\n|\r|\n/g);
|
|
88
|
+
if (this._lastChunkEndedWithCR && chunk[0] == "\n") {
|
|
89
|
+
lines.shift();
|
|
90
|
+
}
|
|
91
|
+
if (this._lineBuffer.length > 0) {
|
|
92
|
+
this._lineBuffer[this._lineBuffer.length - 1] += lines[0];
|
|
93
|
+
lines.shift();
|
|
94
|
+
}
|
|
95
|
+
this._lastChunkEndedWithCR = chunk[chunk.length - 1] == "\r";
|
|
96
|
+
this._lineBuffer = this._lineBuffer.concat(lines);
|
|
97
|
+
this._pushBuffer(encoding, 1, done);
|
|
98
|
+
};
|
|
99
|
+
LineStream.prototype._pushBuffer = function(encoding, keep, done) {
|
|
100
|
+
while (this._lineBuffer.length > keep) {
|
|
101
|
+
const line = this._lineBuffer.shift();
|
|
102
|
+
if (this._keepEmptyLines || line.length > 0) {
|
|
103
|
+
if (!this.push(this._reencode(line, encoding))) {
|
|
104
|
+
const self = this;
|
|
105
|
+
setImmediate(function() {
|
|
106
|
+
self._pushBuffer(encoding, keep, done);
|
|
107
|
+
});
|
|
108
|
+
return;
|
|
128
109
|
}
|
|
129
|
-
}
|
|
110
|
+
}
|
|
130
111
|
}
|
|
131
|
-
|
|
112
|
+
done();
|
|
113
|
+
};
|
|
114
|
+
LineStream.prototype._flush = function(done) {
|
|
115
|
+
this._pushBuffer(this._chunkEncoding, 0, done);
|
|
116
|
+
};
|
|
117
|
+
LineStream.prototype._reencode = function(line, chunkEncoding) {
|
|
118
|
+
if (this.encoding && this.encoding != chunkEncoding) {
|
|
119
|
+
return Buffer.from(line, chunkEncoding).toString(this.encoding);
|
|
120
|
+
} else if (this.encoding) {
|
|
121
|
+
return line;
|
|
122
|
+
} else {
|
|
123
|
+
return Buffer.from(line, chunkEncoding);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
@@ -16,13 +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
|
|
20
|
-
__export(
|
|
21
|
-
countModelsAndTypes: () => countModelsAndTypes
|
|
22
|
-
init_countModelsAndTypes: () => init_countModelsAndTypes
|
|
19
|
+
var chunk_LGYRZ6CV_exports = {};
|
|
20
|
+
__export(chunk_LGYRZ6CV_exports, {
|
|
21
|
+
countModelsAndTypes: () => countModelsAndTypes
|
|
23
22
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
25
|
-
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
23
|
+
module.exports = __toCommonJS(chunk_LGYRZ6CV_exports);
|
|
26
24
|
function countModelsAndTypes(schemas) {
|
|
27
25
|
let modelsCount = 0;
|
|
28
26
|
let typesCount = 0;
|
|
@@ -32,7 +30,3 @@ function countModelsAndTypes(schemas) {
|
|
|
32
30
|
}
|
|
33
31
|
return { modelsCount, typesCount };
|
|
34
32
|
}
|
|
35
|
-
var init_countModelsAndTypes = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
36
|
-
"src/utils/countModelsAndTypes.ts"() {
|
|
37
|
-
}
|
|
38
|
-
});
|