Skip to content

Commit

Permalink
fix(main): remove creation of tables outside of Alembic
Browse files Browse the repository at this point in the history
  • Loading branch information
TAnas0 committed Sep 27, 2024
1 parent 37a662e commit 523dda6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
from fastapi import FastAPI
from .database import engine
from .models import Base
from .routes import router

app = FastAPI()

app.include_router(router, prefix="/api/v1")


# Create the database tables
Base.metadata.create_all(bind=engine) # TODO replace with Alembic migrations


@app.get("/")
async def read_root():
return {"message": "Welcome to the PolygonFinder API"}

0 comments on commit 523dda6

Please sign in to comment.