futurefuture's avatar

schema:dump test sqlite

Love the idea of this feature in L8!

However, I am using sqlite in memory for phpunit - anyone know how to implement the schema:dump just for sqlite in memory for tests??

0 likes
3 replies
bobbybouwmann's avatar
Level 88

The only thing you can do is run your migrations and make a copy of the .sqlite file. You should then before running your test, move your .sqlite file to the correct directory and you're good to go. You can also just keep this file in your test directory, but you need to run your migrations at least once.

The schema:dump command won't work for sqlite at this point.

3 likes
kossa's avatar

I'm facing the same issue, any solution after 7 months 😅

futurefuture's avatar

Yea, I kind of just gave up on using this feature for now..

Just a lot of migration files :)

Please or to participate in this conversation.