Dev__
06/29/2021, 1:42 PMmodel User {
....
memos Memo[]
}
model Memo {
userId String?
user User? @relation(fields: [userId], references: [id])
}Dev__
06/29/2021, 1:47 PMFK null in the optional relation model) after I dropped the database and did a push. is this supposed to be like this? it wont work without dropping the database?janpio
referentialActions preview feature in 2.26.0?Ryan
06/29/2021, 1:49 PMonDelete. You can have a look at this here: https://github.com/prisma/prisma/releases/tag/2.26.0Dev__
06/29/2021, 1:49 PMDev__
06/29/2021, 1:50 PMDev__
06/29/2021, 1:50 PMDev__
06/29/2021, 1:51 PMRyan
06/29/2021, 1:52 PMON DELETE SET NULL by default.Dev__
06/29/2021, 1:53 PMRyan
06/29/2021, 1:59 PMNULL so that wouldn’t be possible.Dev__
06/29/2021, 2:02 PMRyan
06/29/2021, 2:05 PMprisma generate? It’s possible that the extension isn’t the latest.Dev__
06/29/2021, 2:05 PMjanpio
janpio
npx prisma validate also complain?Dev__
06/29/2021, 2:08 PMjanpio