diff --git a/application/config/migration.php b/application/config/migration.php index 4b585a6..a65a2b4 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -11,7 +11,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); | and disable it back when you're done. | */ -$config['migration_enabled'] = FALSE; +$config['migration_enabled'] = TRUE; /* |-------------------------------------------------------------------------- diff --git a/application/controllers/Migrate.php b/application/controllers/Migrate.php new file mode 100644 index 0000000..012b23b --- /dev/null +++ b/application/controllers/Migrate.php @@ -0,0 +1,28 @@ +load->library('migration'); + } + + public function index() + { + if ($this->migration->latest() === FALSE) + { + show_error($this->migration->error_string()); + } else { + echo "Database updated or update not needed."; + } + + } +} + +?> \ No newline at end of file