mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Exclude old data migration from the migrations check (#3373)
This commit is contained in:
parent
552b2c9f54
commit
5aeb418945
2 changed files with 7 additions and 1 deletions
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 a new issue