Skip to content

Migrations fail on non-existing tables #1

Description

@mp5gosu

Migrations fail when running alembic upgrade head especially b1546baf39b1_add_gps_columns_to_media_files which has no down revision. It attempts to add columns to media_files table which does not exist yet.
Migration is done before spinning up the fastAPI app, therefore fails.
My suggestion: Handle migrations as a separate helper, not part of the app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions