From a6b6102619b696d788e0bc7ae7afd897630a4211 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 4 Jul 2019 14:44:00 -0400 Subject: [PATCH] idea level --- sopel_modules/SpiceBot/Database.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sopel_modules/SpiceBot/Database.py b/sopel_modules/SpiceBot/Database.py index a3d4a24..0824655 100644 --- a/sopel_modules/SpiceBot/Database.py +++ b/sopel_modules/SpiceBot/Database.py @@ -80,6 +80,18 @@ class PluginValues(BASE): value = Column(Text()) +class ChannelNickValues(BASE): + """ + PluginValues SQLAlchemy Class + """ + __tablename__ = 'spice_plugin_values' + __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) + value = Column(Text()) + + class SpiceDB(object): # NICK FUNCTIONS