Update sql_patches.php

synched with master for these patches 276-278 with freedom for violating uniqueness of invoice_item_id and tax_id combination