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

Nevermind, I had ran the migration and resulted on a faulty state. Evidently the schema was trying to do a dropcolumn on a non-existant column.

Last updated 2 years ago.
0

If your migrations are related between them, in example:

  1. First migration create the posts table.
  2. Second migration create the comments table with a foreign key that use the first posts table.

And later you create a migration that drop the table posts, you need first at all delete the messages table and them delete the posts table, or drop the foreign key index from the comments table and then delete the posts tables with the result of a orphan comments table that later could be related with another table.

Hope it helps you.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

juanfgs juanfgs Joined 3 May 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.