DC/Pooja | #3070 | Added exception handling for migrations