|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not enough user ratings||Total: 29 This week: 1||All time: 10,614 This week: 142|
This package can revert one or more database migrations.
It provides a Laravel service provider that can execute a given database migration or revert a given migration executed before.
This service provider can also execute migrations on a specific folder.
|Migrations are steps that applications need to give to evolve the application database to a newer version.
If for some reason it is necessary to go back to a past version of an application, reverting the effects of a migrations will allow applications to go back to the state of a database where it was before a migration was performed.
This package provides means to revert a given migration when using the Laravel framework to develop a given application.
Laravel Revert DB Migrate
Laravel Revert DB Migrate gives you the option to run a specific migration or run migrations in a specified folder. it also allows you revert specific migration(s)
You can install the package via composer:
composer require djunehor/laravel-revert-migration
Laravel 5.5 and above
The package will automatically register itself, so you can start using it immediately.
Laravel 5.4 and older
In Laravel version 5.4 and older, you have to add the service provider in
config/app.php file manually:
'providers' => [
After installing the package, you will have to register it in
bootstrap/app.php file manually:
// Register Service Providers
After installing the package, you will now see a new
`php artisan migrate:cherrypick
Migrate specific file
You can migrate a specific file inside your
database/migrations folder using:
### Migrate specific directory
You can migrate a specific directory inside your `database/migrations` folder using:
You can revert migrations inside your project using:
- Md. Hasan Sayeed
For any questions, you can reach out to the author of this package, Zacchaeus Bolaji.
Thank you for using it.
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.