|
@@ 253-257 (lines=5) @@
|
| 250 |
|
} |
| 251 |
|
|
| 252 |
|
// process table collation |
| 253 |
|
if (isset($options['collation'])) { |
| 254 |
|
$charset = explode('_', $options['collation']); |
| 255 |
|
$optionsStr .= sprintf(' CHARACTER SET %s', $charset[0]); |
| 256 |
|
$optionsStr .= sprintf(' COLLATE %s', $options['collation']); |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
// set the table comment |
| 260 |
|
if (isset($options['comment'])) { |
|
@@ 376-380 (lines=5) @@
|
| 373 |
|
$optionsStr = sprintf('ENGINE = %s', $newOptions['engine']); |
| 374 |
|
} |
| 375 |
|
// process table collation |
| 376 |
|
if (isset($newOptions['collation'])) { |
| 377 |
|
$charset = explode('_', $newOptions['collation']); |
| 378 |
|
$optionsStr .= sprintf(' CHARACTER SET %s', $charset[0]); |
| 379 |
|
$optionsStr .= sprintf(' COLLATE %s', $newOptions['collation']); |
| 380 |
|
} |
| 381 |
|
// set the table comment |
| 382 |
|
if (array_key_exists('comment', $newOptions)) { |
| 383 |
|
// passing 'null' is to remove table comment |