Skip to content
Snippets Groups Projects
Verified Commit 198af76c authored by Damien's avatar Damien
Browse files

FEAT #14249 TIME 0:10 Minor update improve

parent be4a377a
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
-- -- -- --
-- -- -- --
-- *************************************************************************-- -- *************************************************************************--
--usergroups_services|groupbasket --DATABASE_BACKUP|usergroups_services|groupbasket
DELETE FROM usergroups_services WHERE service_id = 'include_folders_and_followed_resources_perimeter'; DELETE FROM usergroups_services WHERE service_id = 'include_folders_and_followed_resources_perimeter';
......
...@@ -218,11 +218,18 @@ class VersionUpdateController ...@@ -218,11 +218,18 @@ class VersionUpdateController
foreach ($args['sqlFiles'] as $sqlFile) { foreach ($args['sqlFiles'] as $sqlFile) {
$fileContent = file_get_contents($sqlFile); $fileContent = file_get_contents($sqlFile);
$explodedFile = explode("\n", $fileContent); $explodedFile = explode("\n", $fileContent);
$explodedFile[7] = str_replace('--', '', $explodedFile[7]); foreach ($explodedFile as $key => $line) {
$explodedLine = explode('|', $explodedFile[7]); if (strpos($line, '--DATABASE_BACKUP') !== false) {
foreach ($explodedLine as $table) { $lineNb = $key;
if (!empty($table)) { }
$tablesToSave .= ' -t ' . trim($table); }
if (isset($lineNb)) {
$explodedLine = explode('|', $explodedFile[$lineNb]);
array_shift($explodedLine);
foreach ($explodedLine as $table) {
if (!empty($table)) {
$tablesToSave .= ' -t ' . trim($table);
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment