Need to use BigInteger for lastrevid

This commit is contained in:
Edward Betts 2024-06-06 13:47:22 +00:00
parent 4d32f62dfb
commit 269c6bce54

View file

@ -107,7 +107,7 @@ class Item(Base):
aliases = Column(postgresql.JSONB)
sitelinks = Column(postgresql.JSONB)
claims = Column(postgresql.JSONB, nullable=False)
lastrevid = Column(Integer, nullable=False, unique=True)
lastrevid = Column(BigInteger, nullable=False, unique=True)
locations: Mapped[list["ItemLocation"]] = relationship(
"ItemLocation", cascade="all, delete-orphan", backref="item"
)