Ruckusing_Adapter_Sqlite3_Base::drop_table PHP Method

drop_table() public method

public drop_table ( string $table_name ) : boolean
$table_name string
return boolean
    public function drop_table($table_name)
    {
        $ddl = sprintf("DROP TABLE IF EXISTS %s", $this->quote_table_name($table_name));
        $this->execute_ddl($ddl);
        return true;
    }

Usage Example

 protected function tearDown()
 {
     //delete any tables we created
     if ($this->adapter->has_table('users', true)) {
         $this->adapter->drop_table('users');
     }
 }
All Usage Examples Of Ruckusing_Adapter_Sqlite3_Base::drop_table