diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-07-21 20:38:07 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-07-21 20:54:17 +0200 |
commit | 64e4d168e01387d5650aaebecdadc4c815071cc3 (patch) | |
tree | c3aa6d70aaf18ba4ea245a397256fcaf694251ca /bin | |
parent | 6df62659dab24eb6fa02c4bd3117edaceecd4383 (diff) |
migration: Order by migrated and append not migrated
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/migrate | 4 |
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; } |