Add Transfer Method to the Database this will in the method to transfer money from 1 account to another

This commit is contained in:
johnnyq
2024-03-05 18:48:34 -05:00
parent 120348df4d
commit 1dfc819660
3 changed files with 12 additions and 5 deletions

View File

@@ -1630,10 +1630,16 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.0.9'");
}
// if (CURRENT_DATABASE_VERSION == '1.0.9') {
// // Insert queries here required to update to DB version 1.1.0
if (CURRENT_DATABASE_VERSION == '1.0.9') {
mysqli_query($mysqli, "ALTER TABLE `transfers` ADD `transfer_method` VARCHAR(200) DEFAULT NULL AFTER `transfer_id`");
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.1.0'");
}
// if (CURRENT_DATABASE_VERSION == '1.1.0') {
// // Insert queries here required to update to DB version 1.1.1
// // Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.1.0'");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.1.1'");
// }
} else {