@famgia/omnify-laravel 2.0.36 → 2.0.37
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/{chunk-FE7YXEZW.js → chunk-RWNQFZZS.js} +4 -4
- package/dist/chunk-RWNQFZZS.js.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +3 -3
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-FE7YXEZW.js.map +0 -1
|
@@ -5415,10 +5415,10 @@ function laravelPlugin(options) {
|
|
|
5415
5415
|
ctx.changes.filter((c) => c.changeType === "added").map((c) => c.schemaName)
|
|
5416
5416
|
);
|
|
5417
5417
|
if (addedSchemaNames.size > 0) {
|
|
5418
|
-
const
|
|
5419
|
-
|
|
5418
|
+
const allMigrations = generateMigrations(ctx.schemas, migrationOptions);
|
|
5419
|
+
const createMigrations = allMigrations.filter(
|
|
5420
|
+
(m) => m.schemaName && addedSchemaNames.has(m.schemaName)
|
|
5420
5421
|
);
|
|
5421
|
-
const createMigrations = generateMigrations(addedSchemas, migrationOptions);
|
|
5422
5422
|
for (const migration of createMigrations) {
|
|
5423
5423
|
const tableName = migration.tables[0];
|
|
5424
5424
|
if (hasMigration(tableName, migration.schemaName)) {
|
|
@@ -5690,4 +5690,4 @@ export {
|
|
|
5690
5690
|
getFactoryPath,
|
|
5691
5691
|
laravelPlugin
|
|
5692
5692
|
};
|
|
5693
|
-
//# sourceMappingURL=chunk-
|
|
5693
|
+
//# sourceMappingURL=chunk-RWNQFZZS.js.map
|