Skip to content

Commit

Permalink
Merge 9d27eb8 into 88aa7d0
Browse files Browse the repository at this point in the history
  • Loading branch information
makallio85 committed Feb 5, 2016
2 parents 88aa7d0 + 9d27eb8 commit b870d6b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Shell/Task/MigrationSnapshotTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,15 @@ public function fetchTableName($className, $pluginName = null)
$tables[] = $table->associations()->get($key)->_junctionTableName();
}
}
$tables[] = $table->table();
$t = $table->table();
$splitted = array_reverse(explode('.', $t));
if (isset($splitted[1])) {
$config = ConnectionManager::config($this->connection);
if ($config['database'] === $splitted[1]) {
$t = $splitted[0];
}
}
$tables[] = $t;

return $tables;
}
Expand Down

0 comments on commit b870d6b

Please sign in to comment.