c0a617aa9d1eadd0d00e993c1039f4818d8b2ff5 — Jiri Vlasak 2 months ago 4c5c0d1
Add upgrade to v0.12.0 section to readme
2 files changed, 48 insertions(+), 0 deletions(-)

@@ 19,6 19,14 @@ Upgraded
- Client to v0.14.1.
- Manager to v0.2.0.


- PostGIS function to split area with custom square size. You need to update
  database manually. Please, see [Upgrade to `v0.12.0`][] section in readme.

[Upgrade to `v0.12.0`](https://git.sr.ht/~qeef/damn-deploy#upgrade-to-codev080code)

0.11.0 - 2020-12-06

M README.md => README.md +40 -0
@@ 312,6 312,46 @@ volume:

    docker volume rm damn_deploy_damndb-volume

Upgrade to `v0.12.0`

This upgrade introduces custom square width and height when creating areas. The
function is stored in `damndb/72_st_area_split_custom_square_size.sql` file.
The steps to upgrade follow.

Stop the damn service and update the repository:

    systemctl stop damn.service
    git stash
    git pull
    git stash pop

Run the database:

    docker-compose up -d db

Import the new function into the database (you will be asked for the password
stored in `.env` file):

    export DB_HOST=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' damndb)
    psql -h $DB_HOST -d damndb -U damnuser < damndb/72_st_area_split_custom_square_size.sql

Stop the database container:

    docker-compose down

Finally, there is no need to build the database container again. The database
is created only once anyway. However, `server`, `client`, and `manager` need to
be updated:

    docker-compose -f server.yml build --no-cache api
    docker-compose -f clients.yml build --no-cache client
    docker-compose -f clients.yml build --no-cache manager

Finally, run the damn service again:

    systemctl start damn.service

Damn upkeep