Fix #5369 - Broken activities cause issues in migrations
commit9bdb174143b1c77d5fab8a70e88e889c9a17e877
authorJessica Tallon <tsyesika@tsyesika.se>
Wed, 6 Jan 2016 15:45:41 +0000 (6 15:45 +0000)
committerJessica Tallon <tsyesika@tsyesika.se>
Wed, 6 Jan 2016 15:58:33 +0000 (6 15:58 +0000)
treed42e63a481cb5fcebe670fb988bd70619e7b1d8b
parent94c064d3ad10e5c65ab44a5fc46a926e3b29bb78
Fix #5369 - Broken activities cause issues in migrations

This fixes a few bugs in previous migrations and then also introduces a new
migration for those who had run the previous migrations without encountering
the bugs to ensure that the database is in the same state as those who ran it
after the bug fixes introduced in this commit.

The commit also ensures that all activities are valid, they should be but they
might not be so checks, from now on we should be able to assume that all activities
will always be valid.
mediagoblin/db/migrations.py
mediagoblin/db/models.py