lib/Doctrine/DBAL/Platforms/OraclePlatform.php 1 location
|
@@ 914-922 (lines=9) @@
|
| 911 |
|
/** |
| 912 |
|
* {@inheritdoc} |
| 913 |
|
*/ |
| 914 |
|
protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName) |
| 915 |
|
{ |
| 916 |
|
if (strpos($tableName, '.') !== false) { |
| 917 |
|
list($schema) = explode('.', $tableName); |
| 918 |
|
$oldIndexName = $schema . '.' . $oldIndexName; |
| 919 |
|
} |
| 920 |
|
|
| 921 |
|
return ['ALTER INDEX ' . $oldIndexName . ' RENAME TO ' . $index->getQuotedName($this)]; |
| 922 |
|
} |
| 923 |
|
|
| 924 |
|
/** |
| 925 |
|
* {@inheritDoc} |
lib/Doctrine/DBAL/Platforms/DB2Platform.php 1 location
|
@@ 716-724 (lines=9) @@
|
| 713 |
|
/** |
| 714 |
|
* {@inheritdoc} |
| 715 |
|
*/ |
| 716 |
|
protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName) |
| 717 |
|
{ |
| 718 |
|
if (strpos($tableName, '.') !== false) { |
| 719 |
|
list($schema) = explode('.', $tableName); |
| 720 |
|
$oldIndexName = $schema . '.' . $oldIndexName; |
| 721 |
|
} |
| 722 |
|
|
| 723 |
|
return ['RENAME INDEX ' . $oldIndexName . ' TO ' . $index->getQuotedName($this)]; |
| 724 |
|
} |
| 725 |
|
|
| 726 |
|
/** |
| 727 |
|
* {@inheritDoc} |
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location
|
@@ 666-674 (lines=9) @@
|
| 663 |
|
/** |
| 664 |
|
* {@inheritdoc} |
| 665 |
|
*/ |
| 666 |
|
protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName) |
| 667 |
|
{ |
| 668 |
|
if (strpos($tableName, '.') !== false) { |
| 669 |
|
list($schema) = explode('.', $tableName); |
| 670 |
|
$oldIndexName = $schema . '.' . $oldIndexName; |
| 671 |
|
} |
| 672 |
|
|
| 673 |
|
return ['ALTER INDEX ' . $oldIndexName . ' RENAME TO ' . $index->getQuotedName($this)]; |
| 674 |
|
} |
| 675 |
|
|
| 676 |
|
/** |
| 677 |
|
* {@inheritdoc} |