| @@ 159-166 (lines=8) @@ | ||
| 156 | // get the migration path from the config |
|
| 157 | $path = $this->getMigrationPath($input, $output); |
|
| 158 | ||
| 159 | if (!file_exists($path)) { |
|
| 160 | $helper = $this->getHelper('question'); |
|
| 161 | $question = $this->getCreateMigrationDirectoryQuestion(); |
|
| 162 | ||
| 163 | if ($helper->ask($input, $output, $question)) { |
|
| 164 | mkdir($path, 0755, true); |
|
| 165 | } |
|
| 166 | } |
|
| 167 | ||
| 168 | $this->verifyMigrationDirectory($path); |
|
| 169 | ||
| @@ 144-151 (lines=8) @@ | ||
| 141 | // get the seed path from the config |
|
| 142 | $path = $this->getSeedPath($input, $output); |
|
| 143 | ||
| 144 | if (!file_exists($path)) { |
|
| 145 | $helper = $this->getHelper('question'); |
|
| 146 | $question = $this->getCreateSeedDirectoryQuestion(); |
|
| 147 | ||
| 148 | if ($helper->ask($input, $output, $question)) { |
|
| 149 | mkdir($path, 0755, true); |
|
| 150 | } |
|
| 151 | } |
|
| 152 | ||
| 153 | $this->verifySeedDirectory($path); |
|
| 154 | ||