How to rollback a migration from a Laravel 4 package?

Rubens Mariuzzo

I have a Laravel 4 package that contains a migration script with both up and down methods implemented. I can run the migrations using artisan:

php artisan migrate --bench="vendor/package"

But how can I rollback that migration for my package?

I have tried the following with no luck:

php artisan migrate:rollback --bench="vendor/package"

That last results in:

[RuntimeException]
The "--bench" option does not exist.

Rubens Mariuzzo

The only way to do that is using the general artisan command:

php artisan migrate:rollback

Which will rollback all your migrations.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to rollback mistyped migration in Laravel?

From Dev

rollback module migration in Laravel?

From Java

How to rollback a specific migration?

From Java

Rollback one specific migration in Laravel

From Dev

laravel migration:rollback gives error

From Dev

How to rollback a migration in Flyway Scala?

From Dev

Create migration from existing database in Laravel 4

From Dev

Create migration from existing database in Laravel 4

From Dev

migration Rollback error class not found in Laravel

From Dev

How the right way to rollback migration with Entity Framework

From Dev

how to create migration from existing database in laravel

From Dev

Laravel 4 migration

From Dev

Laravel 4 migration

From Dev

Laravel 4 Migration Bug?

From Dev

Laravel 4 - Extend application controller from a package

From Dev

Laravel migration:rollback for pivot table giving class not found error

From Dev

Laravel migration:rollback for pivot table giving class not found error

From Dev

How to create a command for a Laravel 4 package?

From Dev

Laravel 4 transactional rollback for 500 error

From Dev

alter table laravel 4 with migration

From Dev

Laravel migration failure apart from migration table

From Dev

How to make Rails 'forget' that I used migration rollback?

From Dev

How to fix drop table migration rollback with empty down method

From Dev

Where to put migration within a Laravel 5.1 package?

From Dev

Migration rollback by file name

From Dev

Rollback to a specific migration

From Dev

def change migration rollback

From Java

How to remove a package from Laravel using composer?

From Dev

How to integrate in Laravel 5 a Package from Packagist?

Related Related

HotTag

Archive