| @@ 869-881 (lines=13) @@ | ||
| 866 | /** |
|
| 867 | * {@inheritDoc} |
|
| 868 | */ |
|
| 869 | protected function getCreateIndexSQLFlags(Index $index) |
|
| 870 | { |
|
| 871 | $type = ''; |
|
| 872 | if ($index->isUnique()) { |
|
| 873 | $type .= 'UNIQUE '; |
|
| 874 | } elseif ($index->hasFlag('fulltext')) { |
|
| 875 | $type .= 'FULLTEXT '; |
|
| 876 | } elseif ($index->hasFlag('spatial')) { |
|
| 877 | $type .= 'SPATIAL '; |
|
| 878 | } |
|
| 879 | ||
| 880 | return $type; |
|
| 881 | } |
|
| 882 | ||
| 883 | /** |
|
| 884 | * {@inheritDoc} |
|
| @@ 1417-1433 (lines=17) @@ | ||
| 1414 | /** |
|
| 1415 | * {@inheritdoc} |
|
| 1416 | */ |
|
| 1417 | protected function getCreateIndexSQLFlags(Index $index) |
|
| 1418 | { |
|
| 1419 | $type = ''; |
|
| 1420 | if ($index->hasFlag('virtual')) { |
|
| 1421 | $type .= 'VIRTUAL '; |
|
| 1422 | } |
|
| 1423 | ||
| 1424 | if ($index->isUnique()) { |
|
| 1425 | $type .= 'UNIQUE '; |
|
| 1426 | } |
|
| 1427 | ||
| 1428 | if ($index->hasFlag('clustered')) { |
|
| 1429 | $type .= 'CLUSTERED '; |
|
| 1430 | } |
|
| 1431 | ||
| 1432 | return $type; |
|
| 1433 | } |
|
| 1434 | ||
| 1435 | /** |
|
| 1436 | * {@inheritdoc} |
|