mirror of https://github.com/itflow-org/itflow
Convert service_domains to use InnoDB instead of MyISAM
This commit is contained in:
parent
5a64bd3a32
commit
244e1290b4
|
|
@ -3373,10 +3373,17 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
||||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.0.6'");
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '2.0.6'");
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (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
|
// 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
|
// // 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 {
|
} else {
|
||||||
|
|
|
||||||
4
db.sql
4
db.sql
|
|
@ -1703,7 +1703,7 @@ CREATE TABLE `service_domains` (
|
||||||
`domain_id` int(11) NOT NULL,
|
`domain_id` int(11) NOT NULL,
|
||||||
KEY `service_id` (`service_id`),
|
KEY `service_id` (`service_id`),
|
||||||
KEY `domain_id` (`domain_id`)
|
KEY `domain_id` (`domain_id`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
@ -2494,4 +2494,4 @@ CREATE TABLE `vendors` (
|
||||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||||
|
|
||||||
-- Dump completed on 2025-03-15 18:27:55
|
-- Dump completed on 2025-03-15 18:34:50
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@
|
||||||
* It is used in conjunction with database_updates.php
|
* It is used in conjunction with database_updates.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DEFINE("LATEST_DATABASE_VERSION", "2.0.6");
|
DEFINE("LATEST_DATABASE_VERSION", "2.0.7");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue