Author : Bakul Damodariya
Occupation : Web Developer / Web Advisor 
gtalk :itiansonline
skype :itiansonline
Contact: (+91) 989-803-4684

Today , when we all are using latest Technologies like Laravel, and we all are aware about Migrations with Laravel. 

Here I am with the Migration when we are using CodeIgniter.

A Few steps to follow when we are using Migration in CodeIgniter. 

- open Command prompt and Go to your application folder  
 cd /var/www/html/your_project


1. php index.php migrate 
command will list all available migration files for which migration is pending

2. php index.php migrate create file_name
command will create migration file with basic template (up and down method)

3. php index.php migrate execute
command will execute pending migrations and will result which migrations were executed successfully and returns database error if exists

4. php index.php migrate rollback
command will find latest batch number and according to that it will rollback all migrations of that batch number. 
this will rollback migration upto one step back.

Comments