Skip to content

Commit

Permalink
chore: Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Nov 2, 2023
1 parent 3090226 commit f00bc9d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Binary file modified prisma/db.test.sqlite
Binary file not shown.
6 changes: 6 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ model Category {
name String
posts Post[]
}

model BigIntCursorTest {
id BigInt @id
key String /// @encrypted
value Int
}
7 changes: 7 additions & 0 deletions src/tests/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f00bc9d

Please sign in to comment.