python - Why does Django generate migrations for help_text and verbose_name changes? -
python - Why does Django generate migrations for help_text and verbose_name changes? -
when alter help_text
or verbose_name
of model fields , run python manage.py makemigrations
, detects these changes , creates new migration, say, 0002_xxxx.py
.
i using postgresql , think these changes irrelevant database (i wonder if dbms these changes relevant exists @ all).
why django generate migrations such changes? alternative ignore them?
can apply changes 0002_xxxx.py
previous migration (0001_initial.py
) manually , safely delete 0002_xxxx.py
?
is there way update previous migration automatically?
this ticket addressed problem.
if have changed help_text
& django generates new migration; can apply changes latest migration previous migration , delete latest migration.
just alter help_text
in previous migration help_text nowadays in latest migration , delete latest migration file. create sure remove corresponding *.pyc
file if present. otherwise exception raised.
python django database-migration django-1.7
Comments
Post a Comment