Do not exit on serve/prepare if there are unknown migrations (#3262)

* Do not exit on serve/prepare if there are unknown migrations

* PR review changes
This commit is contained in:
Lucas Manuel Rodriguez
2021-12-08 19:50:00 -03:00
committed by GitHub
parent c39191cb00
commit d0765cb9ee
6 changed files with 68 additions and 13 deletions
-1
View File
@@ -499,7 +499,6 @@ Such migrations can be applied via "fleet prepare db" before running "fleet serv
case fleet.AllMigrationsCompleted:
fmt.Println("Migrations up-to-date.")
case fleet.UnknownMigrations:
// Shouldn't happen, because fleet serve won't be running if this is the case.
fmt.Printf("Unknown migrations detected: tables=%v, data=%v.\n",
migrationStatus.UnknownTable, migrationStatus.UnknownData)
case fleet.SomeMigrationsCompleted: