A MySQL database manipulation module for Kohana 3
$blacksmith = Blacksmith::create();
$table = $blacksmith->table(Blacksmith_Table::IF_NOT_EXISTS, 'people');
$table->increments('id');
$table->string('email', 100)->default_value('[email protected]');
$table->string('password', 50);
$blacksmith->forge();
$blacksmith = Blacksmith::alter();
$table = $blacksmith->table('people');
$table->modify_column()->string('password', 255);
$blacksmith->forge();
$blacksmith = Blacksmith::alter();
$table = $blacksmith->table('people');
$table->drop_column('password');
$blacksmith->forge();
$blacksmith = Blacksmith::alter();
$table = $blacksmith->table('people');
$table->add_column()->string('password');
$blacksmith->forge();
$blacksmith = Blacksmith::drop();
$blacksmith->table(Blacksmith_Table::IF_EXISTS, 'people');
$blacksmith->forge();