Adding @@ignore
to a model that references an enum fails to generate enhanced client
#1835
Labels
Milestone
Description and expected behavior
Ignoring a model with
@@ignore
causes the enhanced client generation to fail if said model references an enum.For example, this
schema.zmodel
:Causes the following error when running
zenstack generate
:Screenshots
N/A.
Environment (please complete the following information):
2.8.0
5.18.0
Additional context
We're currently investigating a better process for dropping tables/columns with no downtime. Part of this process uses
@ignore
/@@ignore
to first remove the table/column reference from the Prisma client, and then, in a subsquent work, we actually drop the table/column. While doing that, we stumbled upon this issue where, if we ignore a model with an enum, we can't generate the enhanced client due to the compilation error sent up there.Prisma doesn't seem to support
@ignore
for enums (https://www.prisma.io/docs/orm/prisma-schema/data-model/models#defining-enums), so we weren't able to explore that.The text was updated successfully, but these errors were encountered: