Skip to content
Discussion options

You must be logged in to vote

@awinogradov 👋

Currently it's not possible to split schema files, but you can follow these requests for more details:

#2443
#2377

As for testing, you replace postgresql to sqlite programmatically and then run prisma generate. This will make sure that you use SQLite for tests.

As a suggestion, I would recommend sticking to the same database for tests so that you do not need to refactor your test logic when you add Postgres specific feature not supported by SQLite (like Enums).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@awinogradov
Comment options

Answer selected by awinogradov
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants