Fix Storage move command

This commit is contained in:
Philipp Holzer 2020-01-18 00:08:48 +01:00
parent 3ea5177c42
commit e5eeaf78f2
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
1 changed files with 2 additions and 1 deletions

View File

@ -130,7 +130,6 @@ HELP;
protected function doMove() protected function doMove()
{ {
$tables = null;
if (count($this->args) < 1 || count($this->args) > 2) { if (count($this->args) < 1 || count($this->args) > 2) {
throw new CommandArgsException('Invalid arguments'); throw new CommandArgsException('Invalid arguments');
} }
@ -141,6 +140,8 @@ HELP;
throw new CommandArgsException('Invalid table'); throw new CommandArgsException('Invalid table');
} }
$tables = [$table]; $tables = [$table];
} else {
$tables = StorageManager::TABLES;
} }
$current = $this->storageManager->getBackend(); $current = $this->storageManager->getBackend();