@@ -79,7 +79,9 @@ |
||
| 79 | 79 | $options = $this->option(); |
| 80 | 80 | switch ($options) { |
| 81 | 81 | case (($options['seeds'] === true) && ($options['migrations'] === true)): |
| 82 | - if (!$this->upload('migrations')) return false; |
|
| 82 | + if (!$this->upload('migrations')) { |
|
| 83 | + return false; |
|
| 84 | + } |
|
| 83 | 85 | return $this->upload('seeds'); |
| 84 | 86 | break; |
| 85 | 87 | case $options['migrations'] === true: |
@@ -178,8 +178,9 @@ |
||
| 178 | 178 | $tableIndexes = $this->getTableIndexes($value['table_name']); |
| 179 | 179 | if (!is_null($tableIndexes) && count($tableIndexes)){ |
| 180 | 180 | foreach ($tableIndexes as $index) { |
| 181 | - if(Str::endsWith($index['Key_name'], '_index')) |
|
| 182 | - $up .= ' $' . "table->index('" . $index['Key_name'] . "');\n"; |
|
| 181 | + if(Str::endsWith($index['Key_name'], '_index')) { |
|
| 182 | + $up .= ' $' . "table->index('" . $index['Key_name'] . "');\n"; |
|
| 183 | + } |
|
| 183 | 184 | } |
| 184 | 185 | } |
| 185 | 186 | |