1# SQLAlchemy does not map BigInt to Int by default on the sqlite dialect.
2# It should, but it doesnt.
3from sqlalchemy import BigInteger
4from sqlalchemy.dialects import postgresql, mysql, sqlite
5
6BigIntegerType = BigInteger()
7BigIntegerType = BigIntegerType.with_variant(postgresql.BIGINT(), 'postgresql')
8BigIntegerType = BigIntegerType.with_variant(mysql.BIGINT(), 'mysql')
9BigIntegerType = BigIntegerType.with_variant(sqlite.INTEGER(), 'sqlite')
10
11# Then replace db.BigInteger with BigIntegerType