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
|
@@ 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) { |