Przeglądaj źródła

Make sure that the creation of the data_synchro_xxx tables uses the utf8 charset and collation and the same DB Engine as the rest of the database.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1867 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 13 lat temu
rodzic
commit
f44dc2c721
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      synchro/synchrodatasource.class.inc.php

+ 1 - 1
synchro/synchrodatasource.class.inc.php

@@ -702,7 +702,7 @@ EOF
 		$aFieldDefs[] = "INDEX (primary_key)";
 		$sFieldDefs = implode(', ', $aFieldDefs);
 
-		$sCreateTable = "CREATE TABLE `$sTable` ($sFieldDefs) ENGINE = innodb;";
+		$sCreateTable = "CREATE TABLE `$sTable` ($sFieldDefs) ENGINE = ".MYSQL_ENGINE." CHARACTER SET utf8 COLLATE utf8_unicode_ci;";
 		CMDBSource::Query($sCreateTable);
 
 		$aTriggers = $this->GetTriggersDefinition();