diff --git a/alembic/env.py b/alembic/env.py index d692a7f..6844fba 100644 --- a/alembic/env.py +++ b/alembic/env.py @@ -53,6 +53,7 @@ def run_migrations_online() -> None: # checkfirst=True ensures this is a no-op on existing databases. try: Base.metadata.create_all(bind=connection, checkfirst=True) + connection.commit() except Exception as exc: import logging logging.getLogger("alembic.env").warning(