- Is there a way to have multiple schema.prisma fi...
# orm-help
r
• Is there a way to have multiple schema.prisma files? One for dev, one for prod and one for testing. I'd like to use sqlite for testing and MySQL for dev/prod...
r
@Rodrigo Scomação do Nascimento 👋 You can do it in the following way; https://github.com/prisma/prisma/issues/2443#issuecomment-630679118
r
Oh thanks for that! It actually looks less hacky! 😃
Just tried it, and it clashes with the `migration_lock.toml`:
Copy code
The datasource provider `sqlite` specified in your schema does not match the one specified in the migration_lock.toml, `mysql`. Please remove your current migration directory and start a new migration history with prisma migrate dev. Read more: <https://pris.ly/d/migrate-provider-switch>
r
Try keeping the schemas in two separate folders so that migrations don’t conflict with each other.