| @@ 858-870 (lines=13) @@ | ||
| 855 | /** |
|
| 856 | * {@inheritDoc} |
|
| 857 | */ |
|
| 858 | protected function getCreateIndexSQLFlags(Index $index) |
|
| 859 | { |
|
| 860 | $type = ''; |
|
| 861 | if ($index->isUnique()) { |
|
| 862 | $type .= 'UNIQUE '; |
|
| 863 | } elseif ($index->hasFlag('fulltext')) { |
|
| 864 | $type .= 'FULLTEXT '; |
|
| 865 | } elseif ($index->hasFlag('spatial')) { |
|
| 866 | $type .= 'SPATIAL '; |
|
| 867 | } |
|
| 868 | ||
| 869 | return $type; |
|
| 870 | } |
|
| 871 | ||
| 872 | /** |
|
| 873 | * {@inheritDoc} |
|
| @@ 1399-1415 (lines=17) @@ | ||
| 1396 | /** |
|
| 1397 | * {@inheritdoc} |
|
| 1398 | */ |
|
| 1399 | protected function getCreateIndexSQLFlags(Index $index) |
|
| 1400 | { |
|
| 1401 | $type = ''; |
|
| 1402 | if ($index->hasFlag('virtual')) { |
|
| 1403 | $type .= 'VIRTUAL '; |
|
| 1404 | } |
|
| 1405 | ||
| 1406 | if ($index->isUnique()) { |
|
| 1407 | $type .= 'UNIQUE '; |
|
| 1408 | } |
|
| 1409 | ||
| 1410 | if ($index->hasFlag('clustered')) { |
|
| 1411 | $type .= 'CLUSTERED '; |
|
| 1412 | } |
|
| 1413 | ||
| 1414 | return $type; |
|
| 1415 | } |
|
| 1416 | ||
| 1417 | /** |
|
| 1418 | * {@inheritdoc} |
|
| @@ 396-410 (lines=15) @@ | ||
| 393 | /** |
|
| 394 | * {@inheritDoc} |
|
| 395 | */ |
|
| 396 | protected function getCreateIndexSQLFlags(Index $index) |
|
| 397 | { |
|
| 398 | $type = ''; |
|
| 399 | if ($index->isUnique()) { |
|
| 400 | $type .= 'UNIQUE '; |
|
| 401 | } |
|
| 402 | ||
| 403 | if ($index->hasFlag('clustered')) { |
|
| 404 | $type .= 'CLUSTERED '; |
|
| 405 | } elseif ($index->hasFlag('nonclustered')) { |
|
| 406 | $type .= 'NONCLUSTERED '; |
|
| 407 | } |
|
| 408 | ||
| 409 | return $type; |
|
| 410 | } |
|
| 411 | ||
| 412 | /** |
|
| 413 | * Extend unique key constraint with required filters |
|