greenelab / tribe

An open-source webserver that allows for easy, reproducible genomics analyses between different webservers
Other
3 stars 3 forks source link

Remove more features that have been deprecated since Django 1.8 #41

Closed dongbohu closed 5 years ago

dongbohu commented 5 years ago

No need to review publications/migrations/0001_initial.py, which was generated automatically by Django.


The following details are written mainly for myself as a reminder in the future:

The two migration files publications/migrations/0001_initial.py and publications/migrations/0002_auto__add_index_publication_pmid.py were replaced by a new publications/migrations/0001_initial.py, because the original version was using south, which has been deprecated. Here is the procedure:

rm publications/migrations/0001_initial.py
rm publications/migrations/0002_auto__add_index_publication_pmid.py
python manage.py makemigrations
python manage.py migrate publications --fake-initial
python manage.py migrate

--fake-initial option is used in the 4th command because the publications tables already exist in the database. Without this option ./manage.py migrate will fail due to the existence of these tables.