fix for bug 997294

Fix duplicate migration numbers breaking migration.