mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Install: Validate database before migrating (#12867)
* Validate database during install Needed to remove usages of legacy functions in the validation * Fix output, restore real versions
This commit is contained in:
@@ -28,7 +28,7 @@ Debug::set(isset($options['d']));
|
||||
Datastore::init();
|
||||
|
||||
// Wait for schema update, as running during update can break update
|
||||
if (get_db_schema() < 107) {
|
||||
if (\LibreNMS\DB\Schema::getLegacySchema() < 107) {
|
||||
logfile('BILLING: Cannot continue until the database schema update to >= 107 is complete');
|
||||
exit(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user