Skip to content

Commit 7452a8e

Browse files
committed
#350 Sanitize missing dot
1 parent 415ab1a commit 7452a8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/commands/MigrationUpgrade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@ public function handle($args)
326326
$version = $args->get(0)->getValue();
327327
}
328328

329+
if (strpos($version, '.') === false) {
330+
$version .= '.0';
331+
}
332+
329333
echo "Upgrading to \033[94m{$version}\033[39m...\n";
330334

331335
$method = 'upgradeTo' . str_replace('.', 'dot', $version);

0 commit comments

Comments
 (0)