Add ability to toggle payment methods

This commit is contained in:
Matt Bannon
2023-11-16 21:49:09 +11:00
parent 602387df58
commit ca7e908af1
6 changed files with 107 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
<?php
// This migration adds an "enabled" column to the payment_methods table and sets all values to 1.
// It allows the user to disable payment methods without deleting them.
/** @noinspection PhpUndefinedVariableInspection */
$db->exec('ALTER TABLE payment_methods ADD COLUMN enabled BOOLEAN DEFAULT 1');
$db->exec('UPDATE payment_methods SET enabled = 1');