summaryrefslogtreecommitdiff
path: root/bin/migrate
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2019-07-21 21:24:41 +0200
committerGitHub <noreply@github.com>2019-07-21 21:24:41 +0200
commit2ef5a7621a57607c5e7310a42ff09293c4dfd4b1 (patch)
treef8a40e38e7b9254cf3d5287267382de5ba19c8cb /bin/migrate
parent0e6de03ac1d9c57558dc7d3a8b93116b1d8bea07 (diff)
parent64e4d168e01387d5650aaebecdadc4c815071cc3 (diff)
Merge pull request #626 from MyIgel/migration
migration: Order by migrated and append not migrated, add more help parameters
Diffstat (limited to 'bin/migrate')
-rwxr-xr-xbin/migrate4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/migrate b/bin/migrate
index ab3598d4..6336e387 100755
--- a/bin/migrate
+++ b/bin/migrate
@@ -19,8 +19,8 @@ $app->register(MigrationServiceProvider::class);
$migration = $app->get('db.migration');
$migration->setOutput(function ($text) { echo $text . PHP_EOL; });
-if (isset($argv[1]) && strtolower($argv[1]) == 'help') {
- echo PHP_EOL . 'Usage: ' . $argv[1] . ' [up|down] [one-step]' . PHP_EOL . PHP_EOL;
+if (isset($argv[1]) && in_array(strtolower($argv[1]), ['help', '--help', '-h'])) {
+ echo PHP_EOL . 'Usage: ' . $argv[0] . ' [up|down] [one-step]' . PHP_EOL . PHP_EOL;
exit;
}