Laravel 4 migration

user3475960

i have created my database , then i have created a table with

php artisan migrate: make create_users_table 

a file has created so i modified up and down function and i typed

php artisan migrate 

until now everything is ok the problem started when i tried to add another lignes to my database , i added another information about users and when i type

php artisan migrate

the response was Nothing to migrate and there is no change into my databse ?

Samuel De Backer

3 possibilities:

  1. Create a new migration

  2. Rollback the last migration operation and rerun it :

    php artisan migrate:rollback
    php artisan migrate 
    
  3. Rollback all migrations and run them all again

    php artisan migrate:refresh
    

More info here: http://laravel.com/docs/migrations

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related