Run Migrations from another BD

Asked

Viewed 40 times

0

I copied the Migrations from another comic to mine. Inside the database/Migrations.

What command do I use in the terminal to run them one by one, that is, individually ?

1 answer

1

Try the command or command:

php artisan migrate --path="app/database/migrations/my_single_migration"

Source: Soen: running-one-specific-Laravel-4-Migration-single-file


And looking at the documentation, you can do more:

Running all pending migrations

php artisan migrate

Running all pending migrations to a path

php artisan migrate --path=app/foo/migrations

Running all pending migrations to a package

php artisan migrate --package=vendor/package

Source: Migrations

Browser other questions tagged

You are not signed in. Login or sign up in order to post.