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