Fix error in db migration