Use alembic for migrations
All checks were successful
ci/woodpecker/push/docker Pipeline was successful
All checks were successful
ci/woodpecker/push/docker Pipeline was successful
This commit is contained in:
parent
5dd8ab3839
commit
cf4d3788bd
4 changed files with 153 additions and 6 deletions
|
@ -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"}},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue