Skip to content

Commit f00bc9d

Browse files
committed
chore: Add test case
1 parent 3090226 commit f00bc9d

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

Diff for: prisma/db.test.sqlite

8 KB
Binary file not shown.

Diff for: prisma/schema.prisma

+6
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@ model Category {
4141
name String
4242
posts Post[]
4343
}
44+
45+
model BigIntCursorTest {
46+
id BigInt @id
47+
key String /// @encrypted
48+
value Int
49+
}

Diff for: src/tests/migrate.ts

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ async function main() {
2727
email: `spam+${Date.now()}@example.com`,
2828
name: `Spam ${Date.now()}`
2929
}
30+
}),
31+
client.bigIntCursorTest.create({
32+
data: {
33+
id: 1,
34+
key: 'Answer to life, universe and everything',
35+
value: 42
36+
}
3037
})
3138
])
3239
await migrate(client)

0 commit comments

Comments
 (0)