dam28800's avatar

Create testing env sqlite

Hello,

I want to create tests. My database is MySQL and I created a mysql-schema file. My test environment is sqlite.

How to recreate my database in sqlite with the mysql schema file.

When I run the tests it only shows me the latest migrations.

Thank you in advance for your assistance

0 likes
1 reply
tykus's avatar
tykus
Best Answer
Level 104

You would need to regenerate the migration files from the existing schema so SQLite can generate all of the tables.

I would suggest that you just use the same DB in test as development/production - using a separate connection obviously!

1 like

Please or to participate in this conversation.