メインコンテンツまでスキップ
Version: Fegg 5.x(開発版)

Model::dropTable

Execute Drop table

Description​

public void Model::dropTable()

Drops the model's table. Throws Fegg\Database\QueryException when the query fails.

Example​

Controller
$model = new Model(true, array(
'table' => 'sample',
));

// Drop Table "sample"
$model->dropTable();