@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.
@@ -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 addedSchemas = Object.fromEntries(
5419
- Object.entries(ctx.schemas).filter(([name]) => addedSchemaNames.has(name))
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-FE7YXEZW.js.map
5693
+ //# sourceMappingURL=chunk-RWNQFZZS.js.map