Cake\Database\Schema\PostgresSchema::dropTableSql PHP Method

dropTableSql() public method

Generate the SQL to drop a table.
public dropTableSql ( Cake\Database\Schema\Table $table ) : array
$table Cake\Database\Schema\Table Table instance
return array SQL statements to drop a table.
    public function dropTableSql(Table $table)
    {
        $sql = sprintf('DROP TABLE %s CASCADE', $this->_driver->quoteIdentifier($table->name()));
        return [$sql];
    }