Skip to content

Commit 1771cd5

Browse files
authored
Added "noActionOnUpdate" in ForeignKeyDefinition (#49297)
1 parent 88d6037 commit 1771cd5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Illuminate/Database/Schema/ForeignKeyDefinition.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ public function restrictOnUpdate()
3434
return $this->onUpdate('restrict');
3535
}
3636

37+
/**
38+
* Indicate that updates should have "no action".
39+
*
40+
* @return $this
41+
*/
42+
public function noActionOnUpdate()
43+
{
44+
return $this->onUpdate('no action');
45+
}
46+
3747
/**
3848
* Indicate that deletes should cascade.
3949
*

0 commit comments

Comments
 (0)