Skip to content

Commit efb1ac4

Browse files
committed
remove check version range
1 parent e1168c8 commit efb1ac4

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Command/Generate/Migration.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,8 @@ public function __invoke($type, $classname)
6363

6464
$version = 0;
6565

66-
if ($migrations !== []) {
67-
$version = max($migrations);
66+
$migrations !== [] && $version = max($migrations);
6867

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-
}
7768
$file_path = $migration_path . sprintf('%03d', ++$version) . '_' . $classname . '.php';
7869
} else {
7970
$file_path = $migration_path . date('YmdHis') . '_' . $classname . '.php';

0 commit comments

Comments
 (0)