Skip to content

Commit

Permalink
Fix checking includedTables later
Browse files Browse the repository at this point in the history
  • Loading branch information
back-2-95 committed Aug 23, 2022
1 parent de3b364 commit fa9ab88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/DumpSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ public function getIncludedTables(): array
return $this->settings['include-tables'] ?? [];
}

public function setIncludedTables(array $tables): void
{
$this->settings['include-tables'] = $tables;
}

public function getIncludedViews(): array
{
return $this->settings['include-views'] ?? [];
Expand Down
2 changes: 1 addition & 1 deletion src/Mysqldump.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ private function getDatabaseStructureTables()
if (in_array(current($row), $includedTables, true)) {
$this->tables[] = current($row);
$elem = array_search(current($row), $includedTables);
// TODO should this be done in DumpSettings?
unset($includedTables[$elem]);
$this->settings->setIncludedTables($includedTables);
}
}
}
Expand Down

0 comments on commit fa9ab88

Please sign in to comment.