mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-08 09:27:38 +01:00
Sets table storage engine to be explicitly InnoDB for MySQL
https://github.com/BentoBoxWorld/BentoBox/issues/934
This commit is contained in:
parent
1406534266
commit
94cb0fb188
@ -23,6 +23,8 @@ public class MySQLDatabaseHandler<T> extends SQLDatabaseHandler<T> {
|
||||
* @param dbConnecter - authentication details for the database
|
||||
*/
|
||||
MySQLDatabaseHandler(BentoBox plugin, Class<T> type, DatabaseConnector dbConnecter) {
|
||||
super(plugin, type, dbConnecter, new SQLConfiguration(type.getCanonicalName()));
|
||||
super(plugin, type, dbConnecter, new SQLConfiguration(type.getCanonicalName())
|
||||
.schema("CREATE TABLE IF NOT EXISTS `" + type.getCanonicalName() +
|
||||
"` (json JSON, uniqueId VARCHAR(255) GENERATED ALWAYS AS (json->\"$.uniqueId\"), UNIQUE INDEX i (uniqueId) ) ENGINE = INNODB"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user