Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

When running a migration it is a good idea to make a backup. But deleting a table in a migration means that table is not needed by the app anymore so why keep it. If you really want to keep the old table try renaming it. If you need to migrate old data you can still access the DB class in the migration class so you can migrate old rows one by one on to the new table and then delete/rename the old table.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Jakobud jakobud Joined 31 Jan 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.