Skip to content

Commit 244e129

Browse files
committed
Convert service_domains to use InnoDB instead of MyISAM
1 parent 5a64bd3 commit 244e129

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

database_updates.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3373,10 +3373,17 @@ function processFile($file_path, $file_name, $mysqli) {
33733373
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.0.6'");
33743374
}
33753375

3376-
// if (CURRENT_DATABASE_VERSION == '2.0.6') {
3377-
// // Insert queries here required to update to DB version 2.0.7
3376+
if (CURRENT_DATABASE_VERSION == '2.0.6') {
3377+
// Fix service_domains to yse InnoDB instead of MyISAM
3378+
mysqli_query($mysqli, "ALTER TABLE service_domains ENGINE = InnoDB;");
3379+
3380+
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.0.7'");
3381+
}
3382+
3383+
// if (CURRENT_DATABASE_VERSION == '2.0.7') {
3384+
// // Insert queries here required to update to DB version 2.0.8
33783385
// // Then, update the database to the next sequential version
3379-
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.0.7'");
3386+
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.0.8'");
33803387
// }
33813388

33823389
} else {

db.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ CREATE TABLE `service_domains` (
17031703
`domain_id` int(11) NOT NULL,
17041704
KEY `service_id` (`service_id`),
17051705
KEY `domain_id` (`domain_id`)
1706-
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
1706+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
17071707
/*!40101 SET character_set_client = @saved_cs_client */;
17081708

17091709
--
@@ -2494,4 +2494,4 @@ CREATE TABLE `vendors` (
24942494
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
24952495
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
24962496

2497-
-- Dump completed on 2025-03-15 18:27:55
2497+
-- Dump completed on 2025-03-15 18:34:50

includes/database_version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
* It is used in conjunction with database_updates.php
66
*/
77

8-
DEFINE("LATEST_DATABASE_VERSION", "2.0.6");
8+
DEFINE("LATEST_DATABASE_VERSION", "2.0.7");

0 commit comments

Comments
 (0)