public function SqlBase::drop

8.0.x SqlBase.php public SqlBase::drop($tables)
7.x SqlBase.php public SqlBase::drop($tables)
master SqlBase.php public SqlBase::drop($tables)
1 call to SqlBase::drop()
SqlBase::drop_or_create in lib/Drush/Sql/SqlBase.php
Drop all tables (if DB exists) or CREATE target database.
1 method overrides SqlBase::drop()
Sqlsqlite::drop in lib/Drush/Sql/Sqlsqlite.php

File

lib/Drush/Sql/SqlBase.php, line 218

Namespace

Drush\Sql

Class

SqlBase

Code

public function drop($tables) {
  if ($tables) {
    $sql = 'DROP TABLE ' . implode(', ', $tables);
    return $this->query($sql);
  }
}