use innodb
This commit is contained in:
Родитель
00465147bc
Коммит
985ad59c1f
|
@ -15,6 +15,7 @@ from linkdrop.model.serializer_mixin import SerializerMixin
|
|||
|
||||
class Link(JsonExpandoMixin, SerializerMixin, Base):
|
||||
__tablename__ = 'links'
|
||||
__table_args__ = make_table_args()
|
||||
|
||||
id = Column(Integer, primary_key=True)
|
||||
userkey = Column(RDUnicode(128), index=True)
|
||||
|
|
|
@ -17,6 +17,8 @@ def make_table_args(*args, **kw):
|
|||
kwuse = kw.copy()
|
||||
if 'mysql_charset' not in kwuse:
|
||||
kwuse['mysql_charset'] = 'utf8'
|
||||
if 'mysql_engine' not in kwuse:
|
||||
kwuse['mysql_engine'] = 'InnoDB'
|
||||
if not args:
|
||||
return kwuse
|
||||
return args + (kwuse,)
|
||||
|
|
Загрузка…
Ссылка в новой задаче