1

Laravel 5.5.
I need to add an additional table to DB without loss of data in existing tables. Re-seeding after the "php artisan migrate: rollback" is not suitable, since there is too much data and seeding will last for several days.

Is it possible to add new table without any affect on the existing tables?

2
  • Create a migration and run php artisan migrate and that will just run any migrations you have not ran already. Commented Mar 14, 2018 at 19:24
  • Oh, so easy! Thanks a lot! Commented Mar 14, 2018 at 19:40

1 Answer 1

1

you can rollback several steps using

php artisan migrate:rollback --step=2

this will rollback last two migrated table

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.