Convert service_domains to use InnoDB instead of MyISAM

This commit is contained in:
johnnyq
2025-03-15 18:35:21 -04:00
parent 5a64bd3a32
commit 244e1290b4
3 changed files with 13 additions and 6 deletions

View File

@@ -3373,10 +3373,17 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.0.6'");
}
// if (CURRENT_DATABASE_VERSION == '2.0.6') {
// // Insert queries here required to update to DB version 2.0.7
if (CURRENT_DATABASE_VERSION == '2.0.6') {
// Fix service_domains to yse InnoDB instead of MyISAM
mysqli_query($mysqli, "ALTER TABLE service_domains ENGINE = InnoDB;");
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
// // Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.0.7'");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.0.8'");
// }
} else {