Skip to content

Commit

Permalink
Optimize dropTable
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker committed Sep 4, 2014
1 parent 261271e commit 31d230a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Mysql/MysqlDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ public function dropTable($tableName, $ifExists = true)
{
$this->connect();

$query = $this->getQuery(true);

$query->setQuery('DROP TABLE ' . ($ifExists ? 'IF EXISTS ' : '') . $this->quoteName($tableName));

$this->setQuery($query);
$this->setQuery('DROP TABLE ' . ($ifExists ? 'IF EXISTS ' : '') . $this->quoteName($tableName));

$this->execute();

Expand Down

0 comments on commit 31d230a

Please sign in to comment.