Skip to content

Commit c732846

Browse files
committed
Use InnoDB as DB table engine (fix missing tables)
1 parent 2955660 commit c732846

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

inc/type.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ public static function addTable($itemtype) {
940940
PRIMARY KEY ( `id` ),
941941
KEY `date_mod` (`date_mod`),
942942
KEY `date_creation` (`date_creation`)
943-
) ENGINE = MYISAM COMMENT = '$itemtype' DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;";
943+
) ENGINE = InnoDB COMMENT = '$itemtype' DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;";
944944
$DB->query($query);
945945

946946
$query = "INSERT INTO `glpi_displaypreferences` (`id`, `itemtype`, `num`, `rank`, `users_id`) " .
@@ -1981,7 +1981,7 @@ static function install(Migration $migration) {
19811981
`linked_itemtypes` text NULL,
19821982
`plugin_genericobject_typefamilies_id` INT( 11 ) NOT NULL DEFAULT 0,
19831983
PRIMARY KEY ( `id` )
1984-
) ENGINE = MYISAM COMMENT = 'Object types definition table' DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;";
1984+
) ENGINE = InnoDB COMMENT = 'Object types definition table' DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;";
19851985
$DB->query($query) or die($DB->error());
19861986
}
19871987

inc/typefamily.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static function install(Migration $migration) {
5050
PRIMARY KEY (`id`),
5151
KEY `date_mod` (`date_mod`),
5252
KEY `date_creation` (`date_creation`)
53-
) ENGINE = MYISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;";
53+
) ENGINE = InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;";
5454
$DB->query($query) or die($DB->error());
5555
}
5656
}

0 commit comments

Comments
 (0)