Custom migration path for testing database tests? #38388
Replies: 2 comments
-
Closing this since there is no reply! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I actually had that case because I wanted to keep the migrations folder small. So, I'd like that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I am in a scenario where the migrations are scattered across different folders as per modules and the test that I am running with refreshDatabase only refreshes the database with migration from the default folder.
I know we can have an artisan call in the test with the migration path but then it somehow overrides the purpose of having RefreshDatabase Trait. What about having a default method/property on that check if any custom path is defined and If there is any use it else falls back to default?
Here is something I am thinking? worth PR?
Does it make any sense? Please suggest...
Beta Was this translation helpful? Give feedback.
All reactions