Fix migrations error