Make migrations work on old data