- Define models in code.
- Create migration file
PYTHONPATH='.' alembic -c ./whathappened/migrations/alembic.ini revision --autogenerate -m 'Migration message'
PYTHONPATH='.' alembic -c ./whathappened/migrations/alembic.ini upgrade head
- Check that things work as expected.
- Add migration file to repository.