diff options
| author | Alexis Métaireau <alexis@vieuxsinge.com> | 2018-12-25 17:40:46 +0100 |
|---|---|---|
| committer | Alexis Métaireau <alexis@vieuxsinge.com> | 2018-12-25 17:40:46 +0100 |
| commit | bd689fe01df83b6fa4ce39d1a35a65375043281f (patch) | |
| tree | 7d111ac3b57e29c99863a8c15f43a18b1890dc64 /docs | |
| parent | cdbcd763ef53b521d72b06dd568a0fd8f019dacb (diff) | |
| parent | 5b5956d86dc1131c2cfdd587dc6abf476c30bd6d (diff) | |
| download | ihatemoney-mirror-bd689fe01df83b6fa4ce39d1a35a65375043281f.zip ihatemoney-mirror-bd689fe01df83b6fa4ce39d1a35a65375043281f.tar.gz ihatemoney-mirror-bd689fe01df83b6fa4ce39d1a35a65375043281f.tar.bz2 | |
Merge remote-tracking branch '0livd/doc-migrations'
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/contributing.rst | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/docs/contributing.rst b/docs/contributing.rst index 1944d67..4b9e58b 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -39,7 +39,6 @@ Accessing dev server In any case, you can point your browser at `http://localhost:5000 <http://localhost:5000>`_. It's as simple as that! - Updating -------- @@ -47,6 +46,21 @@ In case you want to update to newer versions (from git), you can just run the "u make update +Create database migrations +-------------------------- + +In case you need to modify the database schema, first update the models in ihatemoney/models.py. +Then run the following command to create a new database revision file:: + + make create-database-revision + +If your changes are simple enough, the generated script will be populated with +the necessary migrations steps. +For complex migrations, it is recommended to start from an empty revision file which can be created +with the following command:: + + make create-empty-database-revision + Useful settings ---------------- |
