Skip to content
Discussion options

You must be logged in to vote

but the problem is to use prisma migrate, you have to have replicas enabled

Prisma Migrate is currently not supported when working with Turso. This is not due to a requirement for replicas, but rather because of how Turso connects to the database.

The recommended workflow is to generate a migration file using prisma migrate dev against a local SQLite database (Not Turso) and then Applying the migration manually using Turso's CLI (To Turso database).

Change url validation to accept libsql:// urls. Add an additional field replica that accepts filepath to enable replicas.

I would recommend opening a Feature Request so that our ORM team can share their insights.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@touhidurrr
Comment options

@touhidurrr
Comment options

@touhidurrr
Comment options

@nurul3101
Comment options

Answer selected by touhidurrr
@touhidurrr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants