mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix schema validation and os def cache invalidation (#9789)
This commit is contained in:
@@ -50,12 +50,14 @@ class Database extends BaseValidation
|
||||
$latest = 1000;
|
||||
|
||||
if ($current === 0 || $current === $latest) {
|
||||
// Using Laravel migrations
|
||||
if (!Schema::isCurrent()) {
|
||||
$validator->fail("Your database is out of date!", './lnms migrate');
|
||||
return;
|
||||
}
|
||||
|
||||
if ($migrations = Schema::getUnexpectedMigrations()) {
|
||||
$migrations = Schema::getUnexpectedMigrations();
|
||||
if ($migrations->isNotEmpty()) {
|
||||
$validator->warn("Your database schema has extra migrations (" . $migrations->implode(', ') .
|
||||
"). If you just switched to the stable release from the daily release, your database is in between releases and this will be resolved with the next release.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user