Parisson / Telemeta

Collaborative content management system for musicology
http://telemeta.org
GNU Affero General Public License v3.0
118 stars 38 forks source link

Database Upgrade #199

Closed AnasGhrab closed 6 years ago

AnasGhrab commented 6 years ago

What is the procedure to upgrade a database to the last version, from 1.6.0 ? Is possible to that after a Backup/Restore using docker-compose run db /srv/scripts/sql/restore_db.sh?

yomguy commented 6 years ago

Hi Anas!

  1. backup your DB : docker-compose run db /srv/scripts/sql/backup_db.sh
  2. upgrade : git pull && git submodule update --init --remote
  3. migrate : docker-compose run app python manage.py migrate
  4. collect (in production) : docker-compose run app python manage.py collectstatic

Please try on a sandbox instance before doing this in production ;)