MCPcopy Create free account
hub / github.com/TruthHun/BookStack / ValidUpdate

Method ValidUpdate

commands/migrate/migrate_v03.go:26–33  ·  view source on GitHub ↗
(version int64)

Source from the content-addressed store, hash-verified

24}
25
26func (m *MigrationVersion03) ValidUpdate(version int64) error {
27 if m.Version() > version {
28 m.isValid = true
29 return nil
30 }
31 m.isValid = false
32 return errors.New("The target version is higher than the current version.")
33}
34
35func (m *MigrationVersion03) ValidForBackupTableSchema() error {
36 if !m.isValid {

Callers

nothing calls this directly

Calls 1

VersionMethod · 0.95

Tested by

no test coverage detected