From 744e158dc72e3417d2afb8e2315803f204647646 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 30 Aug 2014 15:41:25 +0200 Subject: Improve migration error message Signed-off-by: Florian Pritz --- application/core/MY_Controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/core/MY_Controller.php b/application/core/MY_Controller.php index a98245b1b..bba8725a9 100644 --- a/application/core/MY_Controller.php +++ b/application/core/MY_Controller.php @@ -24,7 +24,7 @@ class MY_Controller extends CI_Controller { // check if DB is up to date if (!$this->input->is_cli_request()) { if (!$this->db->table_exists('migrations')){ - show_error("Database not initialized. Can't find migrations table. Please run the migration script."); + show_error("Database not initialized. Can't find migrations table. Please run the migration script. (php index.php tools update_database)"); } else { $this->config->load("migration", true); $target_version = $this->config->item("migration_version", "migration"); @@ -34,7 +34,7 @@ class MY_Controller extends CI_Controller { $current_version = $row ? $row->version : 0; if ($current_version != $target_version) { - show_error("Database version is $current_version, we want $target_version. Please run the migration script."); + show_error("Database version is $current_version, we want $target_version. Please run the migration script. (php index.php tools update_database)"); } } } -- cgit v1.2.3-24-g4f1b