From 649dc2fdb2e6ce8df514de576af5526b0c2d2e70 Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Sat, 24 Oct 2026 18:04:30 +0200 Subject: [PATCH] increase credit score int size --- src/cogs/social_credit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cogs/social_credit.py b/src/cogs/social_credit.py index 7f88152..498aeaa 100644 --- a/src/cogs/social_credit.py +++ b/src/cogs/social_credit.py @@ -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