mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
increase credit score int size
This commit is contained in:
1 parent
6801c6a21a
commit
649dc2fdb2
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user