Alembic Cheat Sheet - Python/SQLAlchemy
alembic revision --autogenerate -m "<your message>"alembic upgrade head
Problem: FAILED: Target database is not up to date.
Solution: alembic upgrade head
Problem: No such revision '5000106def16'
Solution:
- sqlite3 db.sqlite3
- drop table alembic_version; (and exit, ctrl+d)
- alembic upgrade head