remove database initialization function which conflicts with alembic

This commit is contained in:
maxDorninger
2025-11-02 13:07:00 +01:00
parent faee405c8d
commit a5c55cc591
2 changed files with 8 additions and 11 deletions

View File

@@ -38,13 +38,6 @@ Base = declarative_base()
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
def init_db() -> None:
log.debug("initializing database with following tables")
for table in Base.metadata.tables:
log.debug(f"Table: {table.title()}")
Base.metadata.create_all(engine)
def get_session() -> Generator[Session, Any, None]:
db = SessionLocal()
try: