Fix broken migration 0012

Previously, the migration 0012 was broken and did not allow to recreate a DB from scratch.
To fix this, all further migrations were squashed to a new 0012.

Before pulling this commit into your working tree, please run:
./manage.py migrate --fake internal 0011

Then merge this commit, and run
./manage.py migrate --fake internal
Redisable test migrations