Skip to content

Commit

Permalink
Use InnoDB as DB table engine (fix missing tables)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed Sep 4, 2018
1 parent 457edff commit 4261da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function plugin_datainjection_install() {
`name` VARCHAR( 255 ) NOT NULL ,
`value` VARCHAR( 255 ) NOT NULL ,
`is_mandatory` TINYINT( 1 ) NOT NULL DEFAULT '0'
) ENGINE = MYISAM CHARSET=utf8 COLLATE=utf8_unicode_ci ;";
) ENGINE = InnoDB CHARSET=utf8 COLLATE=utf8_unicode_ci ;";
$DB->queryOrDie($query, $DB->error());

$query = "CREATE TABLE IF NOT EXISTS `glpi_plugin_datainjection_infos` (
Expand All @@ -114,7 +114,7 @@ function plugin_datainjection_install() {
`itemtype` varchar(255) NOT NULL default '',
`value` VARCHAR( 255 ) NOT NULL ,
`is_mandatory` TINYINT( 1 ) NOT NULL DEFAULT '0'
) ENGINE = MYISAM CHARSET=utf8 COLLATE=utf8_unicode_ci ;";
) ENGINE = InnoDB CHARSET=utf8 COLLATE=utf8_unicode_ci ;";
$DB->queryOrDie($query, $DB->error());

if (!is_dir(PLUGIN_DATAINJECTION_UPLOAD_DIR)) {
Expand Down

0 comments on commit 4261da7

Please sign in to comment.