Skip to content

Commit

Permalink
Update docs/upgrading.rst, making db migrations optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
dougthor42 committed Mar 1, 2019
1 parent 1c99781 commit 2a31383
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/upgrading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ connection speed.
while we're doing things.
3. Backup your database.
4. Pull the new image.
5. Perform database migrations.
5. (Optional) Manually perform database migrations. As of #117 (release
v0.6.0), migrations are automatically performed upon recieving the first
request after server start (when the WSGI process starts).
6. Bring up the stack.

If you're using a specific version release, update your ``docker-compose.yml``
Expand Down Expand Up @@ -54,7 +56,7 @@ Then run the rest of the steps:
--database sqlite:///data/internal.db \
status
# Run the migrations
# Optional: Run the migrations
$ docker-compose run --rm --no-deps trendlines \
peewee-db \
--directory /trendlines/migrations \
Expand Down

0 comments on commit 2a31383

Please sign in to comment.