Skip to content

Commit

Permalink
db: update db_database to db_name
Browse files Browse the repository at this point in the history
  • Loading branch information
RustyBower committed Feb 8, 2019
1 parent 47c44e4 commit e58d6f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sopel/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit e58d6f3

Please sign in to comment.