fix: New installs would have multiple entries in dbSchema table (#4460)

This commit is contained in:
Neil Lathwood
2016-09-17 00:20:34 +01:00
committed by Tony Murray
parent 5115533c73
commit 45e41ad02e
3 changed files with 6 additions and 1 deletions

View File

@@ -153,6 +153,9 @@ foreach ($filelist as $file) {
$db_rev = $filename;
if ($insert) {
dbInsert(array('version' => $db_rev), 'dbSchema');
if ($db_rev >= 6) {
$insert = 0;
}
} else {
dbUpdate(array('version' => $db_rev), 'dbSchema');
}