@@ 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} |
@@ 1082-1091 (lines=10) @@ | ||
1079 | * MySQL commits a transaction implicitly when DROP TABLE is executed, however not |
|
1080 | * if DROP TEMPORARY TABLE is executed. |
|
1081 | */ |
|
1082 | public function getDropTemporaryTableSQL($table) |
|
1083 | { |
|
1084 | if ($table instanceof Table) { |
|
1085 | $table = $table->getQuotedName($this); |
|
1086 | } elseif (!is_string($table)) { |
|
1087 | throw new \InvalidArgumentException('getDropTemporaryTableSQL() expects $table parameter to be string or \Doctrine\DBAL\Schema\Table.'); |
|
1088 | } |
|
1089 | ||
1090 | return 'DROP TEMPORARY TABLE ' . $table; |
|
1091 | } |
|
1092 | ||
1093 | /** |
|
1094 | * Gets the SQL Snippet used to declare a BLOB column type. |