al
PPrisma
•Created by al on 11/13/2024 in #help-and-questions
Syncing Prisma across multiple repo's
Multiple of our software's services use prisma ORM to interact with the same DB. However, we oftentimes must manually sync the schema across the different repo's that the services live in when we do a single DB migration.
This seems like it would be a common issue, so is there a recommended way to go about this?
4 replies
PPrisma
•Created by al on 11/7/2024 in #help-and-questions
new optional field failing
introduced a new column into one of my models
model MyModel {
...
myKey String? @default(uuid())
}
then ran npx prisma migrate dev
then deploy
on my newly spun up pg docker container successfully, and finally prisma generate
to regenerate the client.
however, upon attempting input a value when create a new row entry, I'm met with
createOneRequest.data.myKey: Field does not exist in enclosing type.
any idea what I might be missing?7 replies