Exclude old data migration from the migrations check (#3373)

This commit is contained in:
Lucas Manuel Rodriguez 2021-12-16 10:52:42 -03:00 committed by GitHub
parent 552b2c9f54
commit 5aeb418945
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1 @@
* Ignore old data migration to avoid showing a warning message on old installations of fleet.

View File

@ -401,7 +401,12 @@ var (
// timestamp was changed in fleet-v4.4.1. // timestamp was changed in fleet-v4.4.1.
20210924114500: {}, 20210924114500: {},
} }
knownUnknownDataMigrations = map[int64]struct{}{} knownUnknownDataMigrations = map[int64]struct{}{
// This migration was present in 2.0.0, and was removed on a subsequent release.
// Was basically running `DELETE FROM packs WHERE deleted = 1`, (such `deleted`
// column doesn't exist anymore).
20171212182459: {},
}
) )
func unknownUnknowns(in []int64, knownUnknowns map[int64]struct{}) []int64 { func unknownUnknowns(in []int64, knownUnknowns map[int64]struct{}) []int64 {