Relative Content

Tag Archive for databaseflaskflask-sqlalchemy

migrating fail in SQLAlchemy thorugh alembic

I am not able to do migrations at all. The intialization is working fine. But when I do migration with:
python -m flask db migrate -m "Initial migration"
I get an alembic error.
usage: alembic [-h] [--version] [-c CONFIG] [-n NAME] [-x X] [--raiseerr] [-q] {branches,check,current,downgrade,edit,ensure_version,heads,history,init,list_templates,merge,revision,show,stamp,upgrade} ... alembic: error: argument {branches,check,current,downgrade,edit,ensure_version,heads,history,init,list_templates,merge,revision,show,stamp,upgrade}: invalid choice: 'Initial migration' (choose from 'branches', 'check', 'current', 'downgrade', 'edit', 'ensure_version', 'heads', 'history', 'init', 'list_templates', 'merge', 'revision', 'show', 'stamp', 'upgrade')