diff --git a/flaschengeist/models/__init__.py b/flaschengeist/models/__init__.py index f4ab8ec..8cf3850 100644 --- a/flaschengeist/models/__init__.py +++ b/flaschengeist/models/__init__.py @@ -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): diff --git a/tests/conftest.py b/tests/conftest.py index fb02e05..e5f798f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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: