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:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user