1
0
Fork 0
forked from External/ergo

refactor schema versions to be ints, not strings

This commit is contained in:
Shivaram Lingamneni 2020-10-26 23:29:49 -04:00
parent 70b8bf75c5
commit dc456bd6a4
3 changed files with 117 additions and 115 deletions

View file

@ -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
}