Added a call that runs CI migration if we need to migrate up or down.

这个提交包含在:
Corby Krick 2013-02-25 21:11:49 -06:00
父节点 266cd3f021
当前提交 c614c5a89d

查看文件

@ -11,7 +11,10 @@ class Dashboard extends CI_Controller {
public function index() public function index()
{ {
// Check our version and run any migrations
$this->load->library('Migration');
$this->migration->current();
// Database connections // Database connections
$this->load->model('logbook_model'); $this->load->model('logbook_model');
$this->load->model('user_model'); $this->load->model('user_model');
@ -162,4 +165,4 @@ class Dashboard extends CI_Controller {
} }
} }