Database migrations¶
Creating a new migration¶
A new migration can either be autogenerated, or created manually.
Autogenerated migration¶
Automatically generate a migration based on detected model changes by running:
./run.py -c /path/to/your/config.ini db migrate -m "some relevant description"
Manual migration¶
Generate a new empty migration file to write a manual migration by running:
./run.py -c /path/to/your/config.ini db revision -m "some relevant description"