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:
Tony Murray
2021-05-13 07:18:54 -05:00
committed by GitHub
parent 500b0ac6fa
commit df5096e449
15 changed files with 77 additions and 69 deletions

View File

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