python - Flask migration error -
i've got application build on flask , wanted create new migration today. when run $python manage.py db upgrade
i got message
raise util.commanderror('only single head supported. ' alembic.util.commanderror: single head supported. script directory has multiple heads (due branching), must resolved manually editing revision files form linear sequence. run alembic branches
see divergence(s).
so run command $alembic branches
no config file 'alembic.ini' found, or file has no '[alembic]' section
any clue on about?
the error messages coming alembic, use command form alembic <command>
, integrating flask coming flask-migrate, need use form python manage.py db branches
.
to resolve multiple branches, make 1 of branches point down other branch upgrade graph straight line.
- see alembic's docs on branches: http://alembic.readthedocs.org/en/latest/branches.html
Comments
Post a Comment