소스 검색

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 년 전
부모
커밋
f44dc2c721
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();