cabotage / cabotage-app

MIT License
28 stars 8 forks source link

Add a make task for generating a new database revision #103

Closed ewdurbin closed 1 month ago

ewdurbin commented 2 months ago

Is your feature request related to a problem? Please describe.

Development requires migrations! We need a simple way to generate them when working locally.

Describe the solution you'd like

make migration "Add column fizz to Buzz"

Should call

python -m flask db revision --autogenerate -m "Add column fizz to Buzz"

in the web container.

Describe alternatives you've considered

Adding documentation on how to generate a migration.

"Run docker compose exec web python -m flask db revision --autogenerate -m "Add column fizz to Buzz" to generate a migration..."

or similar in README.md