0; }; // What a payment method is for - 0 money in and out (every method so far), 1 money in (payments and income), 2 money out (expenses) if (!$itflow_column('payment_methods', 'payment_method_use')) { mysqli_query($mysqli, "ALTER TABLE `payment_methods` ADD `payment_method_use` tinyint(1) NOT NULL DEFAULT 0 AFTER `payment_method_description`"); } // An archived payment method leaves the pickers - the records that used it keep it if (!$itflow_column('payment_methods', 'payment_method_archived_at')) { mysqli_query($mysqli, "ALTER TABLE `payment_methods` ADD `payment_method_archived_at` datetime DEFAULT NULL AFTER `payment_method_updated_at`"); } unset($itflow_column);