mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Exclude old data migration from the migrations check (#3373)
This commit is contained in:
parent
552b2c9f54
commit
5aeb418945
1
changes/issue-3371-ignore-old-data-migration
Normal file
1
changes/issue-3371-ignore-old-data-migration
Normal file
@ -0,0 +1 @@
|
||||
* Ignore old data migration to avoid showing a warning message on old installations of fleet.
|
@ -401,7 +401,12 @@ var (
|
||||
// timestamp was changed in fleet-v4.4.1.
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user