Removed redundant hash field from files table as the reference already stores this value

This commit is contained in:
johnnyq
2025-03-17 14:59:37 -04:00
parent 244e1290b4
commit 4378fc2719
4 changed files with 127 additions and 121 deletions

View File

@@ -3380,10 +3380,17 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.0.7'");
}
// if (CURRENT_DATABASE_VERSION == '2.0.7') {
// // Insert queries here required to update to DB version 2.0.8
if (CURRENT_DATABASE_VERSION == '2.0.7') {
mysqli_query($mysqli, "ALTER TABLE `files` DROP `file_hash`");
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.0.8'");
}
// if (CURRENT_DATABASE_VERSION == '2.0.8') {
// // Insert queries here required to update to DB version 2.0.9
// // Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.0.8'");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.0.9'");
// }
} else {