Removed Single Link Vendor Login and single link software login. These are unused will be moved to multi to multi relationship, also added vendor_id to software to reference a vendor

This commit is contained in:
johnnyq
2025-02-24 21:24:57 -05:00
parent f2dc25aedb
commit 56cbcf2921
7 changed files with 18 additions and 107 deletions

View File

@@ -2505,10 +2505,22 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.8.4'");
}
// if (CURRENT_DATABASE_VERSION == '1.8.4') {
// // Insert queries here required to update to DB version 1.8.5
if (CURRENT_DATABASE_VERSION == '1.8.4') {
mysqli_query($mysqli, "ALTER TABLE `logins` DROP `login_software_id`");
mysqli_query($mysqli, "ALTER TABLE `logins` DROP `login_vendor_id`");
mysqli_query($mysqli, "ALTER TABLE `software` DROP `software_login_id`");
mysqli_query($mysqli, "ALTER TABLE `software` ADD `software_vendor_id` INT(11) DEFAULT 0 AFTER `software_accessed_at`");
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.8.5'");
}
// if (CURRENT_DATABASE_VERSION == '1.8.5') {
// // Insert queries here required to update to DB version 1.8.6
// // Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.8.5'");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.8.6'");
// }
} else {