From fbe25a67cfd5aa50f792f0c838069b4104de1b7b Mon Sep 17 00:00:00 2001 From: Isaac Beh Date: Sun, 26 Nov 2023 20:21:31 +1000 Subject: [PATCH] Fixed autoincrement for the SQL database --- uqcsbot/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uqcsbot/models.py b/uqcsbot/models.py index 4b39fd8..2a8fb5b 100644 --- a/uqcsbot/models.py +++ b/uqcsbot/models.py @@ -20,7 +20,7 @@ class AOCWinners(Base): __tablename__ = "aoc_winners" id: Mapped[int] = mapped_column( - "id", BigInteger, primary_key=True, nullable=False, autoincrement=True + "id", Integer, primary_key=True, nullable=False, autoincrement=True ) aoc_userid: Mapped[int] = mapped_column("aoc_userid", Integer, nullable=False) year: Mapped[int] = mapped_column("year", Integer, nullable=False) @@ -31,7 +31,7 @@ class AOCRegistrations(Base): __tablename__ = "aoc_registrations" id: Mapped[int] = mapped_column( - "id", BigInteger, primary_key=True, nullable=False, autoincrement=True + "id", Integer, primary_key=True, nullable=False, autoincrement=True ) aoc_userid: Mapped[int] = mapped_column("aoc_userid", Integer, nullable=False) year: Mapped[int] = mapped_column("year", Integer, nullable=False)