Introduce a protection to avoid migration if database has critical bugs

making data lost.
This commit is contained in:
Laurent Destailleur 2015-02-14 12:26:39 +01:00
parent c596fa1475
commit 7cf115cc87

View File

@ -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)
)