summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-08-30 15:41:25 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-08-30 15:41:55 +0200
commit744e158dc72e3417d2afb8e2315803f204647646 (patch)
tree1172cbbc8e2eb6ce57d82e90c7e27cf425da1a64 /application
parent7d02c59da55224bb9ce9aaea470ba237a4100a34 (diff)
Improve migration error message
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r--application/core/MY_Controller.php4
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)");
}
}
}