lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location
|
@@ 764-768 (lines=5) @@
|
| 761 |
|
|
| 762 |
|
$sql[] = $query; |
| 763 |
|
|
| 764 |
|
if (isset($options['indexes']) && ! empty($options['indexes'])) { |
| 765 |
|
foreach ($options['indexes'] as $index) { |
| 766 |
|
$sql[] = $this->getCreateIndexSQL($index, $tableName); |
| 767 |
|
} |
| 768 |
|
} |
| 769 |
|
|
| 770 |
|
if (isset($options['foreignKeys'])) { |
| 771 |
|
foreach ((array) $options['foreignKeys'] as $definition) { |
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php 2 locations
|
@@ 346-350 (lines=5) @@
|
| 343 |
|
return $query; |
| 344 |
|
} |
| 345 |
|
|
| 346 |
|
if (isset($options['indexes']) && ! empty($options['indexes'])) { |
| 347 |
|
foreach ($options['indexes'] as $indexDef) { |
| 348 |
|
$query[] = $this->getCreateIndexSQL($indexDef, $name); |
| 349 |
|
} |
| 350 |
|
} |
| 351 |
|
|
| 352 |
|
if (isset($options['unique']) && ! empty($options['unique'])) { |
| 353 |
|
foreach ($options['unique'] as $indexDef) { |
|
@@ 352-356 (lines=5) @@
|
| 349 |
|
} |
| 350 |
|
} |
| 351 |
|
|
| 352 |
|
if (isset($options['unique']) && ! empty($options['unique'])) { |
| 353 |
|
foreach ($options['unique'] as $indexDef) { |
| 354 |
|
$query[] = $this->getCreateIndexSQL($indexDef, $name); |
| 355 |
|
} |
| 356 |
|
} |
| 357 |
|
|
| 358 |
|
return $query; |
| 359 |
|
} |
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php 1 location
|
@@ 283-287 (lines=5) @@
|
| 280 |
|
|
| 281 |
|
$sql[] = $query; |
| 282 |
|
|
| 283 |
|
if (isset($options['indexes']) && !empty($options['indexes'])) { |
| 284 |
|
foreach ($options['indexes'] as $index) { |
| 285 |
|
$sql[] = $this->getCreateIndexSQL($index, $tableName); |
| 286 |
|
} |
| 287 |
|
} |
| 288 |
|
|
| 289 |
|
if (isset($options['foreignKeys'])) { |
| 290 |
|
foreach ((array) $options['foreignKeys'] as $definition) { |