Skip to content

The backend currently initializes tables on startup with create_all(). We already have Alembic in the repo, so schema management should move fully to migrations. #1

Description

@bme2003

Why

create_all() can hide schema drift and makes production boot behavior less predictable.

Proposed Change

  • Remove init_db() / create_all() from FastAPI startup
  • Document migration-first startup flow
  • Ensure local development still works cleanly with alembic upgrade head

Acceptance Criteria

  • App starts without calling create_all()
  • README reflects the new boot flow
  • Existing schema can be created through Alembic only

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions