Welcome Guest, Not a member yet? Register   Sign In
migrations
#1

Hi,
Is it a nice way to check if there is new migrations available without actually triggering them - I want to show notification on admin page that running migration is needed.
The methods in Migration.php lib seem to trigger migrations scripts.

thanks in advance,
Janusz
Reply
#2

PHP Code:
$this->load->config('migration');
if (
config_item('migration_version') > $this->db->get('migrations')->row()->version)
{
    echo 
'new version';

Reply
#3

thanks, it's what i neededSmile
Reply




Theme © iAndrew 2016 - Forum software by © MyBB