umbrellio/rollback-missing-migrations
Rollback Missing Migrations for Laravel
Laravel package for rolling back migrations between different releases
Installation
composer
composer require umbrellio/rollback-missing-migrations
Usage
In your new release directory:
php artisan rollback_missing_migrations:rollback <path_to_artisan>
<path_to_artisan>- absolute path to artisan command in previous release
Example:
php artisan rollback_missing_migrations:rollback /projects/old_release/your_app/artisan
If your migrations files locate in the custom directory you can use optional parameters:
--path- path where your migration files locate in current release--old-path- path where your migration files locate in old release--realpath- this flag indicates, how--pathand--old-pathformats (absolute or relative) will be recognized
Example with a relative path:
php artisan rollback_missing_migrations:rollback /projects/old_release_app/artisan \
--old-path=database/old_custom_folder \
--path=database/custom_migration_folder
Example with an absolute path:
php artisan rollback_missing_migrations:rollback /projects/old_release/your_app/artisan \
--old-path=/projects/old_release/your_app/database/old_custom_folder \
--path=/new_release/your_app/database/custom_migration_folder \
--realpath
In case if you need rollback new migrations different from origin/master, you can use rollback_new_migrations:rollback
Authors
Created by Art4es & Korben Dallas.
Related Packages
swiftyper/laravel-fbt-sync
Extension for automatic deployment of fbt framework translations for Laravel
2,432
0
umbrellio/php-table-sync
PHP's implementation of the library providing data synchronization between micro...
51,016
5
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 5.0.0 | ^8.3| | ^11.0 | | MIT | |
| 4.0.1 | ^8.3| | ^11.0 | | MIT | |
| 4.0.0 | ^8.3| | ^11.0 | MIT | |
| 3.0.0 | ^8.3| | ^11.0 | MIT | |
| 2.5.1 | ^7.3| | ^5.7| | MIT | |
| 2.5.0 | ^7.3| | ^5.7| | MIT | |
| 2.4.3 | ^7.3| | ^5.7| | MIT | |
| 2.4.2 | ^7.3| | ^5.7| | MIT | |
| 2.4.1 | ^7.3| | ^5.7| | MIT | |
| 2.4.0 | ^7.3| | ^5.7| | MIT | |
| 2.3.1 | ^7.3| | ^5.7| | MIT | |
| 2.3.0 | ^7.3| | ^5.7| | MIT | |
| 2.2.0 | ^7.3| | ^5.7| | MIT | |
| 2.1.0 | ^7.3| | ^5.7| | MIT | |
| 2.0.1 | ^7.3| | ^5.7| | MIT | |
| 2.0.0 | ^7.3| | ^5.7| | MIT | |
| 1.1.0 | ^7.3| | >5.7 | MIT | |
| 1.0.1 | ^7.3| | >5.7 | MIT | |
| 1.0.0 | ^7.3| | >5.7 | MIT |




