Use alembic for migrations
All checks were successful
ci/woodpecker/push/docker Pipeline was successful

This commit is contained in:
Oliver Traber 2024-04-20 13:33:42 +02:00
parent 5dd8ab3839
commit cf4d3788bd
Signed by: Bluemedia
GPG key ID: C0674B105057136C
4 changed files with 153 additions and 6 deletions

View file

@ -4,9 +4,6 @@ from starlette.middleware.authentication import AuthenticationMiddleware
load_dotenv()
from app.database import engine, Base
from app.models import *
from app.routers import (
chargepoint_v1,
id_token_v1,
@ -17,8 +14,6 @@ from app.routers import (
)
from app.util.websocket_auth_backend import BasicAuthBackend
Base.metadata.create_all(bind=engine)
def create_ocpp_app():
app_ocpp = FastAPI(
responses={404: {"description": "Not found"}},