Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 369 Bytes

DEVELOPMENT.md

File metadata and controls

8 lines (7 loc) · 369 Bytes

Adding new models to the database.

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