zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

Unable to use Prisma 6.18.0 modernised datasource config

Open jamiter opened this issue 1 month ago • 0 comments

Description and expected behavior In prisma 6.18.0 the datasource config has been moved to the prisma.config.ts file. This means it's no longer required in the schema. But if I remove it, Zenstack will still throw an error, because it does it's own validation in the cli-utils file.

Validation error: Model must define a datasource

I would expect to no longer have to add the datasource to the schema file with the latest prisma version.

Environment:

  • ZenStack version: 2.21.0
  • Prisma version: 6.18.0
  • Database type: Postgresql

Additional context Prisma is working hard to modernise their config and move most non-model data to the config file, which I agree with. This is an interesting development, also for Zenstack v3, which might need to follow this example to stay compatible with prisma. Just something to consider.

jamiter avatar Nov 02 '25 19:11 jamiter