File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,23 @@ export async function migrate(
279
279
The progress report callback is optional , and will log progress to the console
280
280
if ommitted .
281
281
282
+ > ** Note ** : when using an extended client , you ' ll need to do an explicit cast
283
+ > to call the ` migrate ` function , like so:
284
+ >
285
+ > ```ts
286
+ > // Import from your generated client location, not @prisma/client
287
+ > import { PrismaClient } from ' .prisma/client' // or custom path
288
+ > import { migrate } from ' ./where/you/want/your/migrations'
289
+ > import { fieldEncryptionExtension } from ' prisma-field-encryption'
290
+ >
291
+ > const client = new PrismaClient ().$extends (fieldEncryptionExtension ())
292
+ >
293
+ > // Explicit cast needed here ↴
294
+ > await migrate (client as PrismaClient )
295
+ > ` ` `
296
+ >
297
+ > See issue [prisma/prisma#20326](https://github.com/prisma/prisma/issues/20326).
298
+
282
299
### Following migrations progress
283
300
284
301
A progress report is an object with the following fields:
You can’t perform that action at this time.
0 commit comments