initial commit, old activity tracker and create-room plugin merged into one with some fun fixes
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from mautrix.util.async_db import UpgradeTable, Connection
|
||||
|
||||
upgrade_table = UpgradeTable()
|
||||
|
||||
@upgrade_table.register(description="Table initialization")
|
||||
async def upgrade_v1(conn: Connection) -> None:
|
||||
await conn.execute(
|
||||
"""CREATE TABLE user_events (
|
||||
mxid TEXT PRIMARY KEY,
|
||||
last_message_timestamp BIGINT NOT NULL,
|
||||
ignore_inactivity INT
|
||||
)"""
|
||||
)
|
||||
Reference in New Issue
Block a user