Created using manage.py squashmigrations, with my patch to the Django migration optimizer to correctly collapse AddConstraints/RemoveConstraints operations.