|
@@ 152-157 (lines=6) @@
|
| 149 |
|
$modified = true; |
| 150 |
|
$config['columnDefinition'] = 'INTEGER PRIMARY KEY AUTOINCREMENT'; |
| 151 |
|
} |
| 152 |
|
if ( !empty($config['comment']) |
| 153 |
|
&& $config['comment'] == 'BINARY') { |
| 154 |
|
$modified = true; |
| 155 |
|
$config['columnDefinition'] = $config['type']->getSQLDeclaration($config, $platform) . ' COLLATE BINARY' . $platform->getDefaultValueDeclarationSQL($config); |
| 156 |
|
} |
| 157 |
|
} |
| 158 |
|
if ($platform->getName() === 'mysql') { |
| 159 |
|
if (!empty($config['comment'])) { |
| 160 |
|
if ($config['comment'] == 'BINARY') { |
|
@@ 160-164 (lines=5) @@
|
| 157 |
|
} |
| 158 |
|
if ($platform->getName() === 'mysql') { |
| 159 |
|
if (!empty($config['comment'])) { |
| 160 |
|
if ($config['comment'] == 'BINARY') { |
| 161 |
|
$modified = true; |
| 162 |
|
$config['columnDefinition'] = $config['type']->getSQLDeclaration($config, $platform) . ' CHARACTER SET utf8 COLLATE utf8_bin' . $platform->getDefaultValueDeclarationSQL($config); |
| 163 |
|
} |
| 164 |
|
if (substr(strtolower(trim($config['comment'])), 0, 3) == 'set') { |
| 165 |
|
$modified = true; |
| 166 |
|
$config['columnDefinition'] = $config['comment'] . $platform->getDefaultValueDeclarationSQL($config); |
| 167 |
|
} |