Fix consistency issuesin relation onDelete behavior while creating a new relation (#4372)

* Fix consistency issuesin relation onDelete behavior while creating a new relation

* Fix according to review
This commit is contained in:
Charles Bochet
2024-03-08 11:49:42 +01:00
committed by GitHub
parent 92aa0bd888
commit d2e2e50d8a
4 changed files with 4 additions and 8 deletions

View File

@ -4,7 +4,7 @@ export const convertOnDeleteActionToOnDelete = (
onDeleteAction: RelationOnDeleteAction | undefined,
): 'CASCADE' | 'SET NULL' | 'RESTRICT' | 'NO ACTION' | undefined => {
if (!onDeleteAction) {
return;
return 'SET NULL';
}
switch (onDeleteAction) {