diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-08-30 15:41:25 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-08-30 15:41:55 +0200 |
commit | 744e158dc72e3417d2afb8e2315803f204647646 (patch) | |
tree | 1172cbbc8e2eb6ce57d82e90c7e27cf425da1a64 /application/core/MY_Controller.php | |
parent | 7d02c59da55224bb9ce9aaea470ba237a4100a34 (diff) |
Improve migration error message
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/core/MY_Controller.php')
-rw-r--r-- | application/core/MY_Controller.php | 4 |
1 files 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)"); } } } |