Make JSONType a MEDIUMBLOB instead of a BLOB under mysql.

These can have 16 MB of data instead of 65 KB - tool shed repositories have encountered problems with the 65 KB limit - though other columns might as well.
This commit is contained in:
John Chilton
2014-11-12 12:46:43 -05:00
parent cbf63cf66f
commit f26ab052d2
+7
View File
@@ -65,6 +65,13 @@ class JSONType( TypeDecorator ):
def is_mutable( self ):
return True
def load_dialect_impl(self, dialect):
if dialect.name == "mysql":
return dialect.type_descriptor(sqlalchemy.dialects.mysql.MEDIUMBLOB)
else:
return self.impl
metadata_pickler = AliasPickleModule( {
( "cookbook.patterns", "Bunch" ) : ( "galaxy.util.bunch" , "Bunch" )
} )