Skip to content

Commit

Permalink
Merge pull request #369 from Quetzacoalt91/avoid-drop-of-tables
Browse files Browse the repository at this point in the history
Avoid drop of some tables like guests
  • Loading branch information
Progi1984 authored Jul 19, 2021
2 parents 261dea4 + c633b5e commit 68c82ce
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 68c82ce

Please sign in to comment.