Flatten budget-app contents into repo root

This commit is contained in:
jpmvaz
2026-10-29 20:41:01 +00:00
parent c9fd26f1c7
commit 93f2696764
95 changed files with 184 additions and 187 deletions
+19
View File
@@ -0,0 +1,19 @@
from logging.config import fileConfig
from alembic import context
from app import models # noqa: F401
from app.db import Base, engine
if context.config.config_file_name:
fileConfig(context.config.config_file_name)
def run_migrations_online() -> None:
with engine.connect() as connection:
context.configure(connection=connection, target_metadata=Base.metadata, compare_type=True)
with context.begin_transaction():
context.run_migrations()
run_migrations_online()