Fix backend pre-deploy migration