Peter Kim
06/17/2021, 12:12 PM@relation
without creating foreign key constraints in the database(mysql)?
When I do prisma db push
, the foreign key constraint is not created, but prisma migrate dev
tries to create it.
In typeorm
@ManyToOne(type => Person, {
createForeignKeyConstraints: false
})
I’m looking for an option similar to this.janpio
janpio
db push
should in theory also create the foreign keys to be honest...janpio
janpio
janpio
janpio
Peter Kim
06/18/2021, 1:41 AM