We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1168c8 commit efb1ac4Copy full SHA for efb1ac4
src/Command/Generate/Migration.php
@@ -63,17 +63,8 @@ public function __invoke($type, $classname)
63
64
$version = 0;
65
66
- if ($migrations !== []) {
67
- $version = max($migrations);
+ $migrations !== [] && $version = max($migrations);
68
69
- // check max version
70
- if ((int)$version === 999) {
71
- $this->stdio->errln(
72
- "<<red>>The version number is out of range<<reset>>"
73
- );
74
- return Status::FAILURE;
75
- }
76
77
$file_path = $migration_path . sprintf('%03d', ++$version) . '_' . $classname . '.php';
78
} else {
79
$file_path = $migration_path . date('YmdHis') . '_' . $classname . '.php';
0 commit comments