Migrated issue, originally created by kaukas (@kaukas)
Consider two migrations: A and B; A succeeds while B fails due to some error. After database migration you get A fully applied and B partially applied or not applied at all.
However, the migrations table remains empty. Once I fix B I should be able to rerun just B but A is executed as well.