richardbarran / django-photologue

A customizable plug-in photo gallery management application for the Django web framework.
BSD 3-Clause "New" or "Revised" License
674 stars 239 forks source link

Update migration 0002 dependency for Django 1.8 #181

Closed cblignaut closed 6 years ago

cblignaut commented 6 years ago

I ran into an issue with an old migration 0002_photosize_data.py.

django.db.utils.IntegrityError: null value in column "name" violates not-null constraint
DETAIL:  Failing row contains (1, null, photologue, photosize).

The name field of django.contrib.contenttypes.models.ContentType was removed in Django 1.8 (ref https://docs.djangoproject.com/en/2.0/releases/1.8/). The current 0002_photosize_data still has a dependency of ('contenttypes', '0001_initial') this PR upgrades the dependency for Django 1.8 >.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 67.511% when pulling 66d94e947bffbc88fd48a18f483476d34c2aa7e6 on cblignaut:feature/update_0002_migration_contenttypes_dependency into eef47550645b7d712d404c93ffa6ce07c7145839 on jdriscoll:master.

richardbarran commented 6 years ago

Thanks for the cleanup!