Skip to content

Commit 04fadc2

Browse files
committed
🚑 hotfix for schema and db dump feature
Signed-off-by: otengkwame <[email protected]>
1 parent ab68609 commit 04fadc2

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

Core/core/Console/Console.php

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -889,45 +889,6 @@ protected static function runMigration(...$args)
889889
exit;
890890
}
891891

892-
if ($key === '--export-shema' || $key === '--xs') {
893-
894-
$removeTables = '';
895-
$filename = date('Y-m-d-His');
896-
897-
$command = Console::phpCommand() . 'migration/exportSchema/'.$filename;
898-
899-
if (isset($args[1]) && isset($steps[0])) {
900-
$filename = ($steps[1]) ?: $filename;
901-
$command = Console::phpCommand() . 'migration/exportSchema/'.$filename;
902-
}
903-
904-
if (isset($args[2]) && !empty($args[2])) {
905-
$list = explode('=', $args[2]);
906-
$removeTables = str_replace(',','__', $list[1]);
907-
$filename = $steps[1];
908-
$command = Console::phpCommand() . 'migration/exportSchema/'.$filename.'/'.$removeTables;
909-
}
910-
911-
static::runSystemCommand($command);
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-
$command = Console::phpCommand() . 'migration/dumpDb/'.$name;
925-
}
926-
927-
static::runSystemCommand($command);
928-
exit;
929-
}
930-
931892
if ($key != null ) {
932893
$steps = explode('=', $key);
933894
}

0 commit comments

Comments
 (0)