From e58d6f36e0e4ad22dc08040bce63ae15d6475edc Mon Sep 17 00:00:00 2001 From: Rusty Bower Date: Fri, 8 Feb 2019 07:23:38 -0600 Subject: [PATCH] db: update db_database to db_name --- sopel/db.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sopel/db.py b/sopel/db.py index c699e831d7..049b834f31 100644 --- a/sopel/db.py +++ b/sopel/db.py @@ -50,8 +50,8 @@ class Nicknames(BASE): """ __tablename__ = 'nicknames' nick_id = Column(Integer, ForeignKey('nick_ids.nick_id'), primary_key=True) - slug = Column(String(255), primary_key=True) - canonical = Column(String(255)) + slug = Column(String, primary_key=True) + canonical = Column(String) class NickValues(BASE): @@ -122,7 +122,7 @@ def __init__(self, config): db_pass = config.core.db_pass db_host = config.core.db_host db_port = config.core.db_port # Optional - db_database = config.core.db_database # Optional, depending on DB + db_name = config.core.db_name # Optional, depending on DB # Ensure we have all our variables defined if db_user is None or db_pass is None or db_host is None: