forked from External/ergo
refactor schema versions to be ints, not strings
This commit is contained in:
parent
70b8bf75c5
commit
dc456bd6a4
3 changed files with 117 additions and 115 deletions
|
|
@ -142,7 +142,7 @@ func (mysql *MySQL) fixSchemas() (err error) {
|
|||
return
|
||||
} else if err == nil && schema != latestDbSchema {
|
||||
// TODO figure out what to do about schema changes
|
||||
return &utils.IncompatibleSchemaError{CurrentVersion: schema, RequiredVersion: latestDbSchema}
|
||||
return fmt.Errorf("incompatible schema: got %s, expected %s", schema, latestDbSchema)
|
||||
} else if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue