Skip to content

Commit

Permalink
Avoid drop of some tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 committed Dec 1, 2020
1 parent f3f639b commit eac56d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/TaskRunner/Rollback/RestoreDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function run()

$tables_after_restore = array_unique($tables_after_restore);
$tables_before_restore = $databaseTools->getAllTables();
$tablesToRemove = array_diff($tables_before_restore, $tables_after_restore);
$tablesToRemove = array_diff($tables_before_restore, $tables_after_restore, $ignore_stats_table);

if (!empty($tablesToRemove)) {
$this->container->getFileConfigurationStorage()->save($tablesToRemove, UpgradeFileNames::DB_TABLES_TO_CLEAN_LIST);
Expand Down

0 comments on commit eac56d3

Please sign in to comment.