File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
packages/schema/src/cli/actions Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 11import { getPrismaClientGenerator , PluginError } from '@zenstackhq/sdk' ;
22import { isPlugin } from '@zenstackhq/sdk/ast' ;
3+ import { getPrismaVersion } from '@zenstackhq/sdk/prisma' ;
34import colors from 'colors' ;
45import path from 'path' ;
6+ import semver from 'semver' ;
57import { CliError } from '../cli-error' ;
68import {
79 checkNewVersion ,
@@ -48,6 +50,11 @@ export async function generate(projectPath: string, options: Options) {
4850 }
4951 }
5052
53+ const prismaVersion = getPrismaVersion ( ) ;
54+ if ( prismaVersion && semver . gte ( prismaVersion , '7.0.0' ) ) {
55+ console . warn ( colors . yellow ( 'Prisma 7 support is untested and not planned. Use with caution.' ) ) ;
56+ }
57+
5158 await runPlugins ( options ) ;
5259
5360 // note that we can't run online jobs concurrently with plugins because
You can’t perform that action at this time.
0 commit comments