|
@@ -355,7 +355,7 @@ if (!GETPOST('action', 'aZ09') || preg_match('/upgrade/i', GETPOST('action', 'aZ
|
|
|
|
|
|
|
|
|
// Scan if there is migration scripts that depends of Dolibarr version
|
|
|
- // for modules htdocs/module/sql or htdocs/custom/module/sql (files called "dolibarr_x.y.z-a.b.c.sql")
|
|
|
+ // for modules htdocs/module/sql or htdocs/custom/module/sql (files called "dolibarr_x.y.z-a.b.c.sql" or "dolibarr_always.sql")
|
|
|
$modulesfile = array();
|
|
|
foreach ($conf->file->dol_document_root as $type => $dirroot) {
|
|
|
$handlemodule = @opendir($dirroot); // $dirroot may be '..'
|
|
@@ -366,6 +366,9 @@ if (!GETPOST('action', 'aZ09') || preg_match('/upgrade/i', GETPOST('action', 'aZ
|
|
|
if (is_file($dirroot.'/'.$filemodule.'/sql/dolibarr_'.$file)) {
|
|
|
$modulesfile[$dirroot.'/'.$filemodule.'/sql/dolibarr_'.$file] = '/'.$filemodule.'/sql/dolibarr_'.$file;
|
|
|
}
|
|
|
+ if (is_file($dirroot.'/'.$filemodule.'/sql/dolibarr_allversions.sql')) {
|
|
|
+ $modulesfile[$dirroot.'/'.$filemodule.'/sql/dolibarr_allversions.sql'] = '/'.$filemodule.'/sql/dolibarr_allversions.sql';
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
closedir($handlemodule);
|