Skip to content

Commit

Permalink
Added "noActionOnUpdate" in ForeignKeyDefinition (#49297)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsa committed Dec 9, 2023
1 parent 88d6037 commit 1771cd5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Database/Schema/ForeignKeyDefinition.php
Expand Up @@ -34,6 +34,16 @@ public function restrictOnUpdate()
return $this->onUpdate('restrict');
}

/**
* Indicate that updates should have "no action".
*
* @return $this
*/
public function noActionOnUpdate()
{
return $this->onUpdate('no action');
}

/**
* Indicate that deletes should cascade.
*
Expand Down

0 comments on commit 1771cd5

Please sign in to comment.