Skip to content

Commit

Permalink
fix: add SET DEFAULT to MySQL::_addRelationSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
iamfat committed Feb 22, 2024
1 parent fbfc6dc commit fa48974
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions class/Gini/Database/MySQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ private function _addRelationSQL($key, $val)
case 'null':
$deleteAction = 'SET NULL';
break;
case 'default':
$deleteAction = 'SET DEFAULT';
break;
default:
$deleteAction = 'NO ACTION';
}
Expand All @@ -375,6 +378,9 @@ private function _addRelationSQL($key, $val)
case 'null':
$updateAction = 'SET NULL';
break;
case 'default':
$updateAction = 'SET DEFAULT';
break;
default:
$updateAction = 'NO ACTION';
}
Expand Down

0 comments on commit fa48974

Please sign in to comment.