increase credit score int size

This commit is contained in:
leander committed 2026-10-24 18:04:30 +02:00
1 parent 6801c6a21a
commit 649dc2fdb2
1 file changed
+3 -1
+3 -1
View File
@@ -58,10 +58,12 @@ class SocialCredit(commands.Cog):
await self.bot.db.execute("""
CREATE TABLE IF NOT EXISTS social_credit (
user_id BIGINT PRIMARY KEY,
credit_score SMALLINT NOT NULL
credit_score INTEGER NOT NULL
);
""")
await self.bot.db.execute("ALTER TABLE social_credit ALTER COLUMN credit_score TYPE INTEGER;")
def add_new_citizen(func):
"""
Decorator that, when used, make sure that a user is inserted