\Database_connection::instance()->disconnect();
\DBUtil::drop_database('db_name');
\DBUtil::create_database('db_name');
\Database_connection::instance()->connect();
\Migrate::latest();
\DBUtil::drop_database('db_name');
\DBUtil::create_database('db_name');
\Migrate::latest();
\DBUtil::drop_database('db_name');"db_name" is used as default.app.
\DBUtil::create_database('db_name');
\DB::query("USE db_name;")->execute();
\Migrate::latest('default', 'app', true);
It looks like you're new here. If you want to get involved, click one of these buttons!