fix(db): Fix Serial column type for SQLite
continuous-integration/woodpecker the build failed Details

This commit is contained in:
Ferdinand Thiessen 2021-12-22 00:36:41 +01:00
parent 702b894f75
commit 016ed7739a
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ class Serial(TypeDecorator):
"""Same as MariaDB Serial used for IDs"""
cache_ok = True
impl = BigInteger().with_variant(mysql.BIGINT(unsigned=True), "mysql").with_variant(sqlite.INTEGER, "sqlite")
impl = BigInteger().with_variant(mysql.BIGINT(unsigned=True), "mysql").with_variant(sqlite.INTEGER(), "sqlite")
class UtcDateTime(TypeDecorator):

View File

@ -31,7 +31,7 @@ def app():
with app.app_context():
database.db.create_all()
database.db.session.commit()
engine = database.db.engine
with engine.connect() as connection:
for statement in _data_sql: