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:
--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.
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
andpublications/migrations/0002_auto__add_index_publication_pmid.py
were replaced by a newpublications/migrations/0001_initial.py
, because the original version was usingsouth
, which has been deprecated. Here is the procedure:--fake-initial
option is used in the 4th command because thepublications
tables already exist in the database. Without this option./manage.py migrate
will fail due to the existence of these tables.