I resolved this by:
- creating a clean install of InvoiceNinja 2.9.1 in a separate DB
- Exporting the payment_types table to SQL
- Backing up my live invoiceninja instance that failed the update
- Clearing the payment_types table in my live instance
- Running:
set foreign_key_checks=0;
INSERT INTO <code>payment_types</code> (<code>id</code>, <code>name</code>, <code>gateway_type_id</code>) VALUES
(1, 'Apply Credit', NULL),
(2, 'Bank Transfer', 2),
(3, 'Cash', NULL),
(4, 'Debit', 1),
(5, 'ACH', 2),
(6, 'Visa Card', 1),
(7, 'MasterCard', 1),
(8, 'American Express', 1),
(9, 'Discover Card', 1),
(10, 'Diners Card', 1),
(11, 'EuroCard', 1),
(12, 'Nova', 1),
(13, 'Credit Card Other', 1),
(14, 'PayPal', 3),
(15, 'Google Wallet', NULL),
(16, 'Check', NULL),
(17, 'Carte Blanche', 1),
(18, 'UnionPay', 1),
(19, 'JCB', 1),
(20, 'Laser', 1),
(21, 'Maestro', 1),
(22, 'Solo', 1),
(23, 'Switch', 1);
But it’s still a concern that this occurred. Any idea what the issue would have been?