mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user