mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
Use more unique logger and remove redundant NOT NULL
This commit is contained in:
parent
e9e325a871
commit
7532f4523a
@ -123,7 +123,7 @@ db = Database.create(
|
||||
config["database"],
|
||||
db_args=config.get("database_opts", {}),
|
||||
ignore_foreign_tables=True,
|
||||
log=logging.getLogger("maubot.db"),
|
||||
log=logging.getLogger("maubot.db.standalone.upgrade"),
|
||||
upgrade_table=upgrade_table,
|
||||
)
|
||||
|
||||
|
@ -32,10 +32,9 @@ upgrade_table = UpgradeTable(
|
||||
async def upgrade_v1(conn: Connection) -> None:
|
||||
await conn.execute(
|
||||
"""CREATE TABLE IF NOT EXISTS standalone_next_batch (
|
||||
user_id TEXT NOT NULL,
|
||||
user_id TEXT PRIMARY KEY,
|
||||
next_batch TEXT,
|
||||
filter_id TEXT,
|
||||
PRIMARY KEY (user_id)
|
||||
filter_id TEXT
|
||||
)"""
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user