fix(api): create domain tables migration + fix create_all commit

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
cartsnitch-engineer[bot]
2026-04-04 21:22:24 +00:00
committed by GitHub
parent 38aa228c00
commit f058ac0686
2 changed files with 211 additions and 0 deletions
+1
View File
@@ -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(