DB Structure Update: Add Fax to location, Delete Vendor Contacts tables decided to merge vendor contacts and conacts as one table as contacts table already had a reference to vendor_id

This commit is contained in:
johnnyq
2024-12-13 15:12:48 -05:00
parent 10496c2971
commit a21cb08914
3 changed files with 14 additions and 30 deletions

View File

@@ -2368,10 +2368,18 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.7.2'");
}
// if (CURRENT_DATABASE_VERSION == '1.7.2') {
// // Insert queries here required to update to DB version 1.7.3
if (CURRENT_DATABASE_VERSION == '1.7.2') {
mysqli_query($mysqli, "ALTER TABLE `locations` ADD `location_fax` VARCHAR(200) DEFAULT NULL AFTER `location_phone`");
mysqli_query($mysqli, "DROP TABLE `vendor_contacts`");
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.7.3'");
}
// if (CURRENT_DATABASE_VERSION == '1.7.3') {
// // Insert queries here required to update to DB version 1.7.4
// // Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.7.3'");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.7.4'");
// }
} else {