@@ 143-150 (lines=8) @@ | ||
140 | ]) |
|
141 | ->get(); |
|
142 | ||
143 | if($key['on_delete']){ |
|
144 | $constraint .= PHP_EOL . $this->getTemplate('migration/on-constraint') |
|
145 | ->with([ |
|
146 | 'event' => 'Delete', |
|
147 | 'action' => $key['on_delete'] |
|
148 | ]) |
|
149 | ->get(); |
|
150 | } |
|
151 | ||
152 | if($key['on_update']){ |
|
153 | $constraint .= PHP_EOL . $this->getTemplate('migration/on-constraint') |
|
@@ 152-159 (lines=8) @@ | ||
149 | ->get(); |
|
150 | } |
|
151 | ||
152 | if($key['on_update']){ |
|
153 | $constraint .= PHP_EOL . $this->getTemplate('migration/on-constraint') |
|
154 | ->with([ |
|
155 | 'event' => 'Update', |
|
156 | 'action' => $key['on_update'] |
|
157 | ]) |
|
158 | ->get(); |
|
159 | } |
|
160 | ||
161 | return $constraint . ';'; |
|
162 | } |