Procházet zdrojové kódy

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 před 13 roky
rodič
revize
f44dc2c721
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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();