Fix issue with first migration not being run on downgrade.