Skip to content
Snippets Groups Projects
Commit 7cf115cc authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Introduce a protection to avoid migration if database has critical bugs

making data lost.
parent c596fa14
No related branches found
No related tags found
No related merge requests found
......@@ -204,7 +204,7 @@ if (! GETPOST("action") || preg_match('/upgrade/i',GETPOST('action')))
}
foreach ($dbversion_disallowed as $dbversion_totest)
{
print $db->type.' - '.join('.',$versionarray).' - '.versioncompare($dbversion_totest['version'],$versionarray)."<br>\n";
//print $db->type.' - '.join('.',$versionarray).' - '.versioncompare($dbversion_totest['version'],$versionarray)."<br>\n";
if ($dbversion_totest['type'] == $db->type
&& (versioncompare($dbversion_totest['version'],$versionarray) == 0 || versioncompare($dbversion_totest['version'],$versionarray)<=-4 || versioncompare($dbversion_totest['version'],$versionarray)>=4)
)
......
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