mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 09:38:48 +02:00
Fixed #81, character set and collation set to utf-8 by default
SVN:trunk[293]
This commit is contained in:
@@ -98,7 +98,7 @@ class CMDBSource
|
||||
|
||||
public static function CreateDB($sSource)
|
||||
{
|
||||
self::Query("CREATE DATABASE `$sSource`");
|
||||
self::Query("CREATE DATABASE `$sSource` CHARACTER SET utf8 COLLATE utf8_unicode_ci");
|
||||
self::SelectDB($sSource);
|
||||
}
|
||||
|
||||
|
||||
@@ -2079,7 +2079,7 @@ abstract class MetaModel
|
||||
if (!CMDBSource::IsTable($sTable))
|
||||
{
|
||||
$aErrors[$sClass][] = "table '$sTable' could not be found into the DB";
|
||||
$aSugFix[$sClass][] = "CREATE TABLE `$sTable` (`$sKeyField` INT(11) NOT NULL $sAutoIncrement PRIMARY KEY) ENGINE = innodb";
|
||||
$aSugFix[$sClass][] = "CREATE TABLE `$sTable` (`$sKeyField` INT(11) NOT NULL $sAutoIncrement PRIMARY KEY) ENGINE = innodb CHARACTER SET utf8 COLLATE utf8_unicode_ci";
|
||||
}
|
||||
// Check that the key field exists
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user