public function Sqlsqlite::drop

8.0.x Sqlsqlite.php public Sqlsqlite::drop($tables)
7.x Sqlsqlite.php public Sqlsqlite::drop($tables)
master Sqlsqlite.php public Sqlsqlite::drop($tables)

Overrides SqlBase::drop

File

lib/Drush/Sql/Sqlsqlite.php, line 70

Namespace

Drush\Sql

Class

Sqlsqlite

Code

public function drop($tables) {
  $sql = '';
  // SQLite only wants one table per DROP TABLE command (so we have to do
  // "DROP TABLE foo; DROP TABLE bar;" instead of "DROP TABLE foo, bar;").
  foreach ($tables as $table) {
    $sql .= "DROP TABLE $table; ";
  }
  return $this->query($sql);
}