Skip to content

Conversation

amirhshokri
Copy link
Contributor

@amirhshokri amirhshokri commented Aug 26, 2025

This was introduced in #56608

While the TableGuesser correctly identifies table names, it does not currently provide a dedicated stub for drop migrations. Since TableGuesser only distinguishes between two states - create and change (via a boolean $create flag) - drop migrations are not properly recognized and default to the change stub.

Changes

  • Add a $drop flag that correctly identifies drop migrations.
  • Update getStub() to use this new flag and return a drop stub.

@taylorotwell
Copy link
Member

Thanks for your pull request to Laravel!

Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.

If applicable, please consider releasing your code as a package so that the community can still take advantage of your contributions!

@amirhshokri amirhshokri deleted the 12.x-add-drop-pattern-support-to-table-guesser branch August 27, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants