Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 443 Bytes

migrations.md

File metadata and controls

19 lines (14 loc) · 443 Bytes

Migrations

First time setup

cd ./things_organizer
flask db upgrade

Making a new migration

In case you want to make changes on the database schema, once those changes are applied in the code we need to make the new migration so all changes in code are reflected on the database and anyone using it have those changes.

flask db migrate --rev-id <id-of-next-change> -m "change done on db"
flask db upgrade