Added Definable Client Abbreviation

This commit is contained in:
johnnyq
2024-06-07 18:18:42 -04:00
parent b229349d8c
commit 24022eca55
10 changed files with 41 additions and 8 deletions

View File

@@ -1942,12 +1942,21 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.3.6'");
}
// if (CURRENT_DATABASE_VERSION == '1.3.6') {
// // Insert queries here required to update to DB version 1.3.7
if (CURRENT_DATABASE_VERSION == '1.3.6') {
mysqli_query($mysqli, "ALTER TABLE `clients` ADD `client_abbreviation` VARCHAR(10) DEFAULT NULL AFTER `client_tax_id_number`");
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.3.7'");
}
// if (CURRENT_DATABASE_VERSION == '1.3.7') {
// // Insert queries here required to update to DB version 1.3.8
// // Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.3.7'");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.3.8'");
// }
} else {
// Up-to-date
}