mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
update
This commit is contained in:
parent
4de9ac7e7b
commit
4cad278049
@ -20,6 +20,9 @@ import threading
|
||||
|
||||
|
||||
BASE = declarative_base()
|
||||
MYSQL_TABLE_ARGS = {'mysql_engine': 'InnoDB',
|
||||
'mysql_charset': 'utf8mb4',
|
||||
'mysql_collate': 'utf8mb4_unicode_ci'}
|
||||
|
||||
|
||||
class NickIDs(BASE):
|
||||
@ -35,7 +38,7 @@ class Nicknames(BASE):
|
||||
Nicknames SQLAlchemy Class
|
||||
"""
|
||||
__tablename__ = 'spice_nicknames'
|
||||
__table_args__ = {'mysql_engine': 'InnoDB', 'mysql_charset': 'utf8mb4', 'mysql_collate': 'utf8mb4_unicode_ci'}
|
||||
__table_args__ = MYSQL_TABLE_ARGS
|
||||
nick_id = Column(Integer, ForeignKey('spice_nick_ids.nick_id'), primary_key=True)
|
||||
slug = Column(String(255), primary_key=True)
|
||||
canonical = Column(String(255))
|
||||
@ -46,7 +49,7 @@ class NickValues(BASE):
|
||||
NickValues SQLAlchemy Class
|
||||
"""
|
||||
__tablename__ = 'spice_nick_values'
|
||||
__table_args__ = {'mysql_engine': 'InnoDB', 'mysql_charset': 'utf8mb4', 'mysql_collate': 'utf8mb4_unicode_ci'}
|
||||
__table_args__ = MYSQL_TABLE_ARGS
|
||||
nick_id = Column(Integer, ForeignKey('spice_nick_ids.nick_id'), primary_key=True)
|
||||
namespace = Column(String(255), primary_key=True)
|
||||
key = Column(String(255), primary_key=True)
|
||||
@ -58,7 +61,7 @@ class ChannelValues(BASE):
|
||||
ChannelValues SQLAlchemy Class
|
||||
"""
|
||||
__tablename__ = 'spice_channel_values'
|
||||
__table_args__ = {'mysql_engine': 'InnoDB', 'mysql_charset': 'utf8mb4', 'mysql_collate': 'utf8mb4_unicode_ci'}
|
||||
__table_args__ = MYSQL_TABLE_ARGS
|
||||
channel = Column(String(255), primary_key=True)
|
||||
namespace = Column(String(255), primary_key=True)
|
||||
key = Column(String(255), primary_key=True)
|
||||
@ -70,7 +73,7 @@ class PluginValues(BASE):
|
||||
PluginValues SQLAlchemy Class
|
||||
"""
|
||||
__tablename__ = 'spice_plugin_values'
|
||||
__table_args__ = {'mysql_engine': 'InnoDB', 'mysql_charset': 'utf8mb4', 'mysql_collate': 'utf8mb4_unicode_ci'}
|
||||
__table_args__ = MYSQL_TABLE_ARGS
|
||||
plugin = Column(String(255), primary_key=True)
|
||||
namespace = Column(String(255), primary_key=True)
|
||||
key = Column(String(255), primary_key=True)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user