| @@ 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} |
|
| @@ 1094-1103 (lines=10) @@ | ||
| 1091 | * MySQL commits a transaction implicitly when DROP TABLE is executed, however not |
|
| 1092 | * if DROP TEMPORARY TABLE is executed. |
|
| 1093 | */ |
|
| 1094 | public function getDropTemporaryTableSQL($table) |
|
| 1095 | { |
|
| 1096 | if ($table instanceof Table) { |
|
| 1097 | $table = $table->getQuotedName($this); |
|
| 1098 | } elseif (!is_string($table)) { |
|
| 1099 | throw new \InvalidArgumentException('getDropTemporaryTableSQL() expects $table parameter to be string or \Doctrine\DBAL\Schema\Table.'); |
|
| 1100 | } |
|
| 1101 | ||
| 1102 | return 'DROP TEMPORARY TABLE ' . $table; |
|
| 1103 | } |
|
| 1104 | ||
| 1105 | /** |
|
| 1106 | * Gets the SQL Snippet used to declare a BLOB column type. |
|