Squash your migrations and you won't be dealing with dropping FKs. Your tests will run faster as well!
Dec 8, 2023
7
Level 1
how do you do testing with migrations (drop foreign key, dropcolumns, add new)?
Hello! I have 54 migrations. I was removing, adding columns, dropping indexes, adding indexes, etc.
Now tests (phpunit) don't run . I have bunch o sqlite problem like
BadMethodCallException: SQLite doesn't support dropping foreign keys (you would need to re-create the table).
and porbably many more.
Is there any good way so test will run fast (in memory?) and without errors?
Please or to participate in this conversation.