| @@ 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} |
|
| @@ 1401-1417 (lines=17) @@ | ||
| 1398 | /** |
|
| 1399 | * {@inheritdoc} |
|
| 1400 | */ |
|
| 1401 | protected function getCreateIndexSQLFlags(Index $index) |
|
| 1402 | { |
|
| 1403 | $type = ''; |
|
| 1404 | if ($index->hasFlag('virtual')) { |
|
| 1405 | $type .= 'VIRTUAL '; |
|
| 1406 | } |
|
| 1407 | ||
| 1408 | if ($index->isUnique()) { |
|
| 1409 | $type .= 'UNIQUE '; |
|
| 1410 | } |
|
| 1411 | ||
| 1412 | if ($index->hasFlag('clustered')) { |
|
| 1413 | $type .= 'CLUSTERED '; |
|
| 1414 | } |
|
| 1415 | ||
| 1416 | return $type; |
|
| 1417 | } |
|
| 1418 | ||
| 1419 | /** |
|
| 1420 | * {@inheritdoc} |
|
| @@ 397-411 (lines=15) @@ | ||
| 394 | /** |
|
| 395 | * {@inheritDoc} |
|
| 396 | */ |
|
| 397 | protected function getCreateIndexSQLFlags(Index $index) |
|
| 398 | { |
|
| 399 | $type = ''; |
|
| 400 | if ($index->isUnique()) { |
|
| 401 | $type .= 'UNIQUE '; |
|
| 402 | } |
|
| 403 | ||
| 404 | if ($index->hasFlag('clustered')) { |
|
| 405 | $type .= 'CLUSTERED '; |
|
| 406 | } elseif ($index->hasFlag('nonclustered')) { |
|
| 407 | $type .= 'NONCLUSTERED '; |
|
| 408 | } |
|
| 409 | ||
| 410 | return $type; |
|
| 411 | } |
|
| 412 | ||
| 413 | /** |
|
| 414 | * Extend unique key constraint with required filters |
|