mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
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:
@@ -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" )
|
||||
} )
|
||||
|
||||
Reference in New Issue
Block a user