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