Alembic Commands
alembic history
alembic branches --verbose
alembic history
alembic heads --verbose
python manage.py alembic heads
alembic upgrade head
alembic merge -m "merge ae1 and 27c" ae1027 27c6a
alembic heads --verbose
alembic upgrade head
alembic current --verbose
alembic heads
alembic upgrade heads
alembic current
alembic downgrade -1
alembic current
alembic upgrade 27c6a
alembic show shoppingcart
alembic upgrade shoppingcart@head
alembic revision -m "add a shopping cart column"
alembic revision -m "add a shopping cart column" --head shoppingcart@head
src:
https://alembic.sqlalchemy.org/en/latest/branches.htmlLast updated
Was this helpful?