We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65765ce commit 90bf1daCopy full SHA for 90bf1da
src/controllers/MigrationController.php
@@ -502,11 +502,12 @@ public function actionUpdate(string $inputTable): int
502
}
503
504
505
+ $countBlueprints = count($blueprints);
506
foreach ($blueprints as $tableName => $blueprint) {
507
$this->stdout("\n > Generating migration for updating table '{$tableName}' ...", Console::FG_YELLOW);
508
509
$normalizedTableName = str_replace('.', '_', $tableName);
- if ($migrationsGenerated === 0) {
510
+ if ($migrationsGenerated === 0 && $countBlueprints === 1) {
511
$migrationClassName = 'm' . gmdate('ymd_His') . '_update_table_' . $normalizedTableName;
512
} else {
513
$migrationClassName = sprintf(
0 commit comments