Created
March 7, 2012 05:49
-
-
Save revathskumar/1991320 to your computer and use it in GitHub Desktop.
Codeigniter migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined("BASEPATH") or exit("No direct script access allowed"); | |
class Migrate extends CI_Controller{ | |
public function index($version){ | |
if(ENVIRONMENT != 'development'){ | |
show_404("migrate"); | |
exit; | |
} | |
$this->load->library("migration"); | |
if(!$this->migration->version($version)){ | |
show_error($this->migration->error_string()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice