diff --git a/server/datastore/migrate/helper.go b/server/datastore/migrate/helper.go index f4a948e6..dfe242c6 100644 --- a/server/datastore/migrate/helper.go +++ b/server/datastore/migrate/helper.go @@ -13,6 +13,7 @@ func transform(stmt string) string { switch meddler.Default { case meddler.MySQL: stmt = strings.Replace(stmt, "AUTOINCREMENT", "AUTO_INCREMENT", -1) + stmt = strings.Replace(stmt, "BLOB", "MEDIUMBLOB", -1) case meddler.PostgreSQL: stmt = strings.Replace(stmt, "INTEGER PRIMARY KEY AUTOINCREMENT", "SERIAL PRIMARY KEY", -1) stmt = strings.Replace(stmt, "BLOB", "BYTEA", -1)