Fix migration schema dump in case of sql schema