diff --git a/prisma/db.test.sqlite b/prisma/db.test.sqlite index 73add4f..88eda50 100644 Binary files a/prisma/db.test.sqlite and b/prisma/db.test.sqlite differ diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 178205c..f295d31 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -41,3 +41,9 @@ model Category { name String posts Post[] } + +model BigIntCursorTest { + id BigInt @id + key String /// @encrypted + value Int +} diff --git a/src/tests/migrate.ts b/src/tests/migrate.ts index 5b95b69..2e85ad4 100644 --- a/src/tests/migrate.ts +++ b/src/tests/migrate.ts @@ -27,6 +27,13 @@ async function main() { email: `spam+${Date.now()}@example.com`, name: `Spam ${Date.now()}` } + }), + client.bigIntCursorTest.create({ + data: { + id: 1, + key: 'Answer to life, universe and everything', + value: 42 + } }) ]) await migrate(client)