New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

umbrellio/rollback-missing-migrations

Laravel package for rolling back migrations between different releases
47,618 2
Install
composer require umbrellio/rollback-missing-migrations
Latest Version:5.0.0
PHP:^8.3|^8.4|^8.5
Laravel:11 · 12 · 13
Older releases:5 – 10
License:MIT
Last Updated:May 26, 2026
Links: GitHub  ·  Packagist
Maintainer: pvsaintpe

Rollback Missing Migrations for Laravel

Laravel package for rolling back migrations between different releases

Github Status Coverage Status Latest Stable Version Total Downloads Code Intelligence Status Build Status Code Coverage Scrutinizer Code Quality

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 --path and --old-path formats (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.

Supported by Umbrellio

Related Packages

valorin/random

Random is a simple helper package designed to make it easy to generate a range o...

413,065 233
php
umbrellio/php-table-sync

PHP's implementation of the library providing data synchronization between micro...

52,101 5
cline/variable-keys

Laravel Blueprint macros for variable primary key and morph types

22,912 0
php
cline/struct

Lean, attribute-driven Laravel data objects with explicit validation and Eloquen...

17,788 0
php
cline/toggl

Advanced feature flag management with strategies, time bombs, and groups

12,171 0
php

Version History

Version Released PHP Laravel License
5.0.0 ^8.3|^8.4|^8.5 ^11.0 | ^12.0 | ^13.0 MIT
4.0.1 ^8.3|^8.4 ^11.0 | ^12.0 MIT
4.0.0 ^8.3|^8.4 ^11.0 MIT
3.0.0 ^8.3|^8.4 ^11.0 MIT
2.5.1 ^7.3|^7.4|^8.0|^8.1|^8.2 ^5.7|^6.20|^7.30|^8.20|^9.0|^10.0|^11.0 MIT