Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions backend/migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@

from atomify_api.config import get_settings

# Import models to register them with SQLModel metadata
# Note: Add model imports here as they are defined
from atomify_api.routers.test import TestRecord # noqa: F401

# Alembic Config object
config = context.config

Expand Down Expand Up @@ -84,4 +80,3 @@ def run_migrations_online() -> None:
run_migrations_offline()
else:
run_migrations_online()

This file was deleted.

4 changes: 0 additions & 4 deletions backend/src/atomify_api/db/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ async def init_db() -> None:

Note: In production, use Alembic migrations instead.
"""
# Import models to register them with SQLModel metadata
from atomify_api.routers.test import TestRecord # noqa: F401

engine = get_engine()
async with engine.begin() as conn:
await conn.run_sync(SQLModel.metadata.create_all)
Expand All @@ -74,4 +71,3 @@ async def get_session() -> AsyncGenerator[AsyncSession, None]:
except Exception:
await session.rollback()
raise

2 changes: 0 additions & 2 deletions backend/src/atomify_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from atomify_api.config import get_settings
from atomify_api.db.database import init_db
from atomify_api.routers.health import router as health_router
from atomify_api.routers.test import router as test_router
from atomify_api.storage.gcs import get_gcs_client


Expand Down Expand Up @@ -45,7 +44,6 @@ def create_app() -> FastAPI:

# Include routers
app.include_router(health_router)
app.include_router(test_router)

return app

Expand Down
3 changes: 1 addition & 2 deletions backend/src/atomify_api/routers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""API routers for the Atomify backend."""

from atomify_api.routers.health import router as health_router
from atomify_api.routers.test import router as test_router

__all__ = ["health_router", "test_router"]
__all__ = ["health_router"]
62 changes: 0 additions & 62 deletions backend/src/atomify_api/routers/test.py

This file was deleted.

Loading