lib/Doctrine/DBAL/Platforms/DB2Platform.php 1 location
|
@@ 717-725 (lines=9) @@
|
714 |
|
/** |
715 |
|
* {@inheritdoc} |
716 |
|
*/ |
717 |
|
protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName) |
718 |
|
{ |
719 |
|
if (strpos($tableName, '.') !== false) { |
720 |
|
list($schema) = explode('.', $tableName); |
721 |
|
$oldIndexName = $schema . '.' . $oldIndexName; |
722 |
|
} |
723 |
|
|
724 |
|
return ['RENAME INDEX ' . $oldIndexName . ' TO ' . $index->getQuotedName($this)]; |
725 |
|
} |
726 |
|
|
727 |
|
/** |
728 |
|
* {@inheritDoc} |
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/PostgreSqlPlatform.php 1 location
|
@@ 661-669 (lines=9) @@
|
658 |
|
/** |
659 |
|
* {@inheritdoc} |
660 |
|
*/ |
661 |
|
protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName) |
662 |
|
{ |
663 |
|
if (strpos($tableName, '.') !== false) { |
664 |
|
list($schema) = explode('.', $tableName); |
665 |
|
$oldIndexName = $schema . '.' . $oldIndexName; |
666 |
|
} |
667 |
|
|
668 |
|
return ['ALTER INDEX ' . $oldIndexName . ' RENAME TO ' . $index->getQuotedName($this)]; |
669 |
|
} |
670 |
|
|
671 |
|
/** |
672 |
|
* {@inheritdoc} |