Repair migration and add schema