Skip to content
Snippets Groups Projects
Commit 14b1b1d6 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: missing upgrade with minor version

parent 616ee246
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ update llx_commande set fk_user_author = null where fk_user_author not in (selec
update llx_commande set fk_user_valid = null where fk_user_valid not in (select rowid from llx_user);
ALTER TABLE llx_extrafields ADD COLUMN TYPE VARCHAR(8);
ALTER TABLE llx_extrafields ADD COLUMN type VARCHAR(8);
UPDATE llx_c_paper_format SET active=1 WHERE active=0;
......
......@@ -310,11 +310,15 @@ if (! GETPOST("action") || preg_match('/upgrade/i',GETPOST('action')))
{
$dir = "mysql/migration/"; // We use mysql migration scripts whatever is database driver
// For minor version
$newversionfrom=preg_replace('/(\.[0-9]+)$/i','.0',$versionfrom);
$newversionto=preg_replace('/(\.[0-9]+)$/i','.0',$versionto);
$filelist=array();
$i = 0;
$ok = 0;
$from='^'.$versionfrom;
$to=$versionto.'\.sql$';
$from='^'.$newversionfrom;
$to=$newversionto.'\.sql$';
// Get files list
$filesindir=array();
......@@ -379,4 +383,4 @@ if ($db->connected) $db->close();
// Return code if ran from command line
if ($ret) exit($ret);
?>
\ No newline at end of file
?>
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