Rogier Neeleman
9 years ago
2 changed files with 29 additions and 1 deletions
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
<?php |
||||
defined('BASEPATH') OR exit('No direct script access allowed'); |
||||
|
||||
/** |
||||
* Migrate to next database release |
||||
*/ |
||||
class Migrate extends CI_Controller |
||||
{ |
||||
|
||||
public function __construct() |
||||
{ |
||||
parent::__construct(); |
||||
$this->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."; |
||||
} |
||||
|
||||
} |
||||
} |
||||
|
||||
?> |
Loading…
Reference in new issue