From c614c5a89d8a7cb12894029d0780c0ff3dd2727b Mon Sep 17 00:00:00 2001 From: Corby Krick Date: Mon, 25 Feb 2013 21:11:49 -0600 Subject: [PATCH] Added a call that runs CI migration if we need to migrate up or down. --- application/controllers/dashboard.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/application/controllers/dashboard.php b/application/controllers/dashboard.php index d7c8c0ee..2226f9b0 100644 --- a/application/controllers/dashboard.php +++ b/application/controllers/dashboard.php @@ -11,7 +11,10 @@ class Dashboard extends CI_Controller { public function index() { - + // Check our version and run any migrations + $this->load->library('Migration'); + $this->migration->current(); + // Database connections $this->load->model('logbook_model'); $this->load->model('user_model'); @@ -162,4 +165,4 @@ class Dashboard extends CI_Controller { } -} \ No newline at end of file +}