Db::dropTable

Usage

void Db::dropTable(string $table_name)

Description

Drop database table including any child tables with foreign key constraints to the table.

Parameters

Parameter Required Type Description
$table_name Yes string The table name to drop.

Examples

Drop Table


$table_name = 'some-table'; $this->db->dropTable($table_name); echo "Table dropped.\n";

See Also