| @@ 1438-1447 (lines=10) @@ | ||
| 1435 | * |
|
| 1436 | * @throws \InvalidArgumentException |
|
| 1437 | */ |
|
| 1438 | public function getDropIndexSQL($index, $table = null) |
|
| 1439 | { |
|
| 1440 | if ($index instanceof Index) { |
|
| 1441 | $index = $index->getQuotedName($this); |
|
| 1442 | } elseif (!is_string($index)) { |
|
| 1443 | throw new \InvalidArgumentException('AbstractPlatform::getDropIndexSQL() expects $index parameter to be string or \Doctrine\DBAL\Schema\Index.'); |
|
| 1444 | } |
|
| 1445 | ||
| 1446 | return 'DROP INDEX ' . $index; |
|
| 1447 | } |
|
| 1448 | ||
| 1449 | /** |
|
| 1450 | * Returns the SQL to drop a constraint. |
|
| @@ 568-577 (lines=10) @@ | ||
| 565 | /** |
|
| 566 | * {@inheritDoc} |
|
| 567 | */ |
|
| 568 | public function getDropTemporaryTableSQL($table) |
|
| 569 | { |
|
| 570 | if ($table instanceof Table) { |
|
| 571 | $table = $table->getQuotedName($this); |
|
| 572 | } elseif (!is_string($table)) { |
|
| 573 | throw new \InvalidArgumentException('getDropTableSQL() expects $table parameter to be string or \Doctrine\DBAL\Schema\Table.'); |
|
| 574 | } |
|
| 575 | ||
| 576 | return 'DROP TEMPORARY TABLE ' . $table; |
|
| 577 | } |
|
| 578 | ||
| 579 | /** |
|
| 580 | * {@inheritDoc} |
|
| @@ 1081-1090 (lines=10) @@ | ||
| 1078 | * MySQL commits a transaction implicitly when DROP TABLE is executed, however not |
|
| 1079 | * if DROP TEMPORARY TABLE is executed. |
|
| 1080 | */ |
|
| 1081 | public function getDropTemporaryTableSQL($table) |
|
| 1082 | { |
|
| 1083 | if ($table instanceof Table) { |
|
| 1084 | $table = $table->getQuotedName($this); |
|
| 1085 | } elseif (!is_string($table)) { |
|
| 1086 | throw new \InvalidArgumentException('getDropTemporaryTableSQL() expects $table parameter to be string or \Doctrine\DBAL\Schema\Table.'); |
|
| 1087 | } |
|
| 1088 | ||
| 1089 | return 'DROP TEMPORARY TABLE ' . $table; |
|
| 1090 | } |
|
| 1091 | ||
| 1092 | /** |
|
| 1093 | * Gets the SQL Snippet used to declare a BLOB column type. |
|