We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08cbfd3 commit 2c7ca43Copy full SHA for 2c7ca43
Core/core/Console/Console.php
@@ -912,6 +912,22 @@ protected static function runMigration(...$args)
912
exit;
913
}
914
915
+ if ($key === '--dump-database' || $key === '--dd') {
916
+
917
+ $name = date('Y-m-d-His');
918
919
+ $command = Console::phpCommand() . 'migration/dumpDb/'.$name;
920
921
+ if (isset($args[1]) && !empty($args[1])) {
922
+ $step = explode('=', $args[1]);
923
+ $name = $step[1];
924
925
+ }
926
927
+ static::runSystemCommand($command);
928
+ exit;
929
930
931
if ($key != null ) {
932
$steps = explode('=', $key);
933
0 commit comments