Skip to content

Commit

Permalink
Temp fix to apply migrations correctly to staging/prod DBs
Browse files Browse the repository at this point in the history
As recommended in
https://github.com/etianen/django-reversion/blob/master/CHANGELOG.rst#302---2018-11-05
squashmigrations strikes again πŸ™„

TODO: revert this once staging/prod DBs cleanly migrated
  • Loading branch information
chris48s committed Oct 1, 2020
1 parent b11d32b commit a474f57
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,10 @@ EXPOSE $PORT

RUN python manage.py collectstatic --noinput

CMD python manage.py migrate && python manage.py update_index && /usr/bin/supervisord
CMD pip install django-reversion==3.0.1 &&\
python manage.py migrate reversion &&\
pip install django-reversion==3.0.8 &&\
python manage.py migrate reversion &&\
python manage.py migrate &&\
python manage.py update_index &&\
/usr/bin/supervisord

0 comments on commit a474f57

Please sign in to comment.