Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • laravel 4 artisan how to rollback to a specific migration state?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 147
    Comment on it

    There are n number of command in laravel 4.x which can help us to perform any action . In laravel 4.x we can rollback our php artisan command. The command to rollback to a specific migration state is

    You can:

    1)Rollback The Last Migration Operation:If we want to rollback only last migration operation then we will use

    php artisan migrate:rollback
    

    2) Rollback all migrations:If we want to rollback all migration operation then we will use

    php artisan migrate:reset
    

    3)Rollback all migrations and run them all again :If we want to rollback all migration operation and run again then we will use

    php artisan migrate:refresh  
    php artisan migrate:refresh --seed
    

    By this way we can use rollback command using Laravel 4.x

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: