Swapped the order of two migrations.

The first was depending on the second, which obviously caused trouble
when migration for the first time using a database other than sqlite.