fix(aurora): make the moderation_id key in the moderation tables not nullable (NOT NULL)
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 28s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 49s

This commit is contained in:
Seaswimmer 2024-08-22 17:52:50 -04:00
parent bc3ea67e1e
commit fadb3e1a9d
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -237,7 +237,7 @@ async def create_guild_table(guild: Guild) -> None:
except aiosqlite.OperationalError: except aiosqlite.OperationalError:
query = f""" query = f"""
CREATE TABLE `moderation_{guild.id}` ( CREATE TABLE `moderation_{guild.id}` (
moderation_id INTEGER PRIMARY KEY, moderation_id INTEGER PRIMARY KEY NOT NULL,
timestamp INTEGER NOT NULL, timestamp INTEGER NOT NULL,
moderation_type TEXT NOT NULL, moderation_type TEXT NOT NULL,
target_type TEXT NOT NULL, target_type TEXT NOT NULL,