diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-03-09 19:42:05 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-03-09 19:42:05 +0100 |
commit | 34357cf742dc90af7ac680a59246fa506b7573ec (patch) | |
tree | 6b2f0373fc14cf2b6e0ed8b2da0f025a6ae2102c /application/controllers | |
parent | 09380594534d4dd2669e2894aa390582a2bc121d (diff) |
Removed migrate controller.
Diffstat (limited to 'application/controllers')
-rw-r--r-- | application/controllers/migrate.php | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/application/controllers/migrate.php b/application/controllers/migrate.php deleted file mode 100644 index e5442e79c..000000000 --- a/application/controllers/migrate.php +++ /dev/null @@ -1,40 +0,0 @@ -<?php -class Migrate extends CI_Controller -{ - function __construct() - { - parent::__construct(); - - $this->load->library('migration'); - - /** VERY IMPORTANT - only turn this on when you need it. */ -// show_error('Access to this controller is blocked, turn me on when you need me.'); - } - - // Install up to the most up-to-date version. - function install() - { - if ( ! $this->migration->current()) - { - show_error($this->migration->error); - exit; - } - - echo "<br />Migration Successful<br />"; - } - - // This will migrate up to the configed migration version - function version($id = NULL) - { - // No $id supplied? Use the config version - $id OR $id = $this->config->item('migration_version'); - - if ( ! $this->migration->version($id)) - { - show_error($this->migration->error); - exit; - } - - echo "<br />Migration Successful<br />"; - } -} |