From cbd5ef287499f7722fac0ad24f35f298260fdb86 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Sun, 26 Oct 2014 10:17:17 -0700 Subject: [PATCH] altered mysql code to use `mediumblob` instead of `blob` to avoid 64k limit --- server/datastore/migrate/helper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/datastore/migrate/helper.go b/server/datastore/migrate/helper.go index f4a948e6c..dfe242c60 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)