Level 6 - ExpertDebugging Questionsm5 schema evolution
Debugging: Breaking Migration Order
Fix this unsafe migration order: ALTER TABLE invoices ALTER COLUMN tax_code SET NOT NULL; UPDATE invoices SET tax_code = 'STD' WHERE tax_code IS NULL;
Fix this unsafe migration order: ALTER TABLE invoices ALTER COLUMN tax_code SET NOT NULL; UPDATE invoices SET tax_code = 'STD' WHERE tax_code IS NULL;