mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-16 04:13:12 +00:00
chore: tweak migrator
This commit is contained in:
parent
b359b8f1cc
commit
8511c09c63
@ -277,6 +277,12 @@ func (s *Store) normalizedMigrationHistoryList(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
schemaVersionMap[common.GetMinorVersion(fileSchemaVersion)] = fileSchemaVersion
|
schemaVersionMap[common.GetMinorVersion(fileSchemaVersion)] = fileSchemaVersion
|
||||||
}
|
}
|
||||||
|
// Add the current schema version to the map.
|
||||||
|
currentSchemaVersion, err := s.GetCurrentSchemaVersion()
|
||||||
|
if err != nil {
|
||||||
|
return errors.Wrap(err, "failed to get current schema version")
|
||||||
|
}
|
||||||
|
schemaVersionMap[common.GetMinorVersion(currentSchemaVersion)] = currentSchemaVersion
|
||||||
|
|
||||||
latestSchemaVersion := schemaVersionMap[latestMinorVersion]
|
latestSchemaVersion := schemaVersionMap[latestMinorVersion]
|
||||||
if latestSchemaVersion == "" {
|
if latestSchemaVersion == "" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user