Skip to content

Commit

Permalink
fixed path
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHuang committed Nov 22, 2017
1 parent 8e6f93b commit 222982c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Migrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public function move(InputInterface $input, OutputInterface $output)
$cachePath = __DIR__ . '/.cache/dataset';
$this->targetDirectory($cachePath);
$tableName = $table->getTableName();
$dataFile = $dataPath . '/' . $tableName . '.yml';
$dataFile = $this->dataSetPath . '/' . $tableName . '.yml';
$rowsCount = 0;
if (file_exists($dataFile) && !file_exists($cachePath . '/' . $tableName)) {
$dataset = Yaml::parse(file_get_contents($dataFile));
Expand Down Expand Up @@ -451,7 +451,7 @@ public function move(InputInterface $input, OutputInterface $output)
public function dump(InputInterface $input, OutputInterface $output)
{
$builder = new TableBuilder($this->createConnection());
$path = $input->getOption('seed');
$path = $this->seedPath;
$this->targetDirectory($path);
$tables = $builder->extract($tableName = $input->getArgument('table'));
foreach ($tables as $table) {
Expand Down

0 comments on commit 222982c

Please sign in to comment.