Closed bradymwilliams closed 1 year ago
Thanks for the report @bradymwilliams, and trying out our Turso driver adapter. We'll look into this.
Thanks for the report @bradymwilliams. We could reproduce this and implemented a fix, which should be part of the next release.
If you don't want to wait that long or want to confirm the fix, you can install prisma@dev
and @prisma/client@dev
from Npm to get our development version that already includes the fix. (Don't use that long term though please.)
Bug description
Creating a db on TURSO from the local sqlite file built from Prisma results in the following error on columns using DateTime type in schema.prisma
Conversion failed: expected a string in column createdAt, found 1697658213523.0
How to reproduce
Local Dev
sqlite
developmentTurso Setup
turso db create test-db --from-file prisma/data.db
21546
Query
Expected behavior
Row gets returned without error
Prisma information
Environment & setup
Prisma Version