fix(db): Fix Serial column type for SQLite
continuous-integration/woodpecker the build failed
Details
continuous-integration/woodpecker the build failed
Details
This commit is contained in:
parent
702b894f75
commit
016ed7739a
|
@ -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):
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue