}
}
- public function getCharsetFieldDeclaration($charset)
- {
- return 'CHARACTER SET ' . $charset;
- }
-
public function getIntegerDeclaration($name, $field)
{
$default = $autoinc = '';
$default = $this->getDefaultFieldDeclaration($field);
$charset = (isset($field['charset']) && $field['charset']) ?
- ' ' . $this->getCharsetFieldDeclaration($field['charset']) : '';
+ ' CHARACTER SET ' . $field['charset'] : '';
$collation = (isset($field['collate']) && $field['collate']) ?
' COLLATE ' . $field['collate'] : '';
return 'UNIQUE';
}
- public function getCharsetFieldDeclaration($charset)
- {
- return '';
- }
-
public function exportSortedClassesSql($classes, $groupByConnection = true)
{
$connections = array();
public function getDeclaration($name, array $field)
{
-
$default = $this->getDefaultFieldDeclaration($field);
$charset = (isset($field['charset']) && $field['charset']) ?
- ' ' . $this->getCharsetFieldDeclaration($field['charset']) : '';
+ ' CHARACTER SET ' . $field['charset'] : '';
$collation = (isset($field['collate']) && $field['collate']) ?
' COLLATE ' . $field['collate'] : '';
'owner',
'exclude',
'collate',
+ 'charset',
),
'relation' => array(
'key',