lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php 1 location
|
@@ 1244-1252 (lines=9) @@
|
| 1241 |
|
} |
| 1242 |
|
} |
| 1243 |
|
|
| 1244 |
|
if ( ! empty($options['primary'])) { |
| 1245 |
|
$flags = ''; |
| 1246 |
|
|
| 1247 |
|
if (isset($options['primary_index']) && $options['primary_index']->hasFlag('clustered')) { |
| 1248 |
|
$flags = ' CLUSTERED '; |
| 1249 |
|
} |
| 1250 |
|
|
| 1251 |
|
$columnListSql .= ', PRIMARY KEY' . $flags . ' (' . implode(', ', array_unique(array_values((array) $options['primary']))) . ')'; |
| 1252 |
|
} |
| 1253 |
|
|
| 1254 |
|
if ( ! empty($options['foreignKeys'])) { |
| 1255 |
|
foreach ((array) $options['foreignKeys'] as $definition) { |
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php 1 location
|
@@ 266-272 (lines=7) @@
|
| 263 |
|
} |
| 264 |
|
} |
| 265 |
|
|
| 266 |
|
if (isset($options['primary']) && !empty($options['primary'])) { |
| 267 |
|
$flags = ''; |
| 268 |
|
if (isset($options['primary_index']) && $options['primary_index']->hasFlag('nonclustered')) { |
| 269 |
|
$flags = ' NONCLUSTERED'; |
| 270 |
|
} |
| 271 |
|
$columnListSql .= ', PRIMARY KEY' . $flags . ' (' . implode(', ', array_unique(array_values($options['primary']))) . ')'; |
| 272 |
|
} |
| 273 |
|
|
| 274 |
|
$query = 'CREATE TABLE ' . $tableName . ' (' . $columnListSql; |
| 275 |
|
|