Skip to content

Not able to generate migrations for existing models. #156

@geekashu

Description

@geekashu

Hi Team,

I have disabled create_tables_on_start like app = create_application(router=router, settings=settings, create_tables_on_start=False).

Now on my local whenever I try to run poetry run alembic revision --autogenerate, it always create an empty migration file. I don't want to use create_all() to create the tables in my DB, instead I want to go via the alembic migrations way and generate all the required migrations beforehand. Is there a step am I missing?

I am coming from the Django world and trying to learning FastAPI using this boilerplate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions