There's an issue with running migrate when using relations (possibly other cases):
Using this schema, for example:
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model Comment {
id String @id
author User? @relation(fields: [authorId], references: [id])
authorId String? @default(auth().id)
}
model User {
id String @id
email String
comments Comment[]
}
Running zen migrate dev, throws the following error:
Unhandled error: Error: Unsupported attribute argument expression type: MemberAccessExpr