mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: New installs would have multiple entries in dbSchema table (#4460)
This commit is contained in:
committed by
Tony Murray
parent
5115533c73
commit
45e41ad02e
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user