Skip to content

Commit

Permalink
Added missing dynamic version column name
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim committed Dec 7, 2015
1 parent afe76df commit 02ddf43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ public function getCurrentVersion()
foreach ($this->migrations as $migration) {
$migratedVersions[] = sprintf("'%s'", $migration->getVersion());
}
$where = " WHERE version IN (" . implode(', ', $migratedVersions) . ")";
$where = " WHERE " . $this->migrationsColumnName . " IN (" . implode(', ', $migratedVersions) . ")";
}

$sql = sprintf("SELECT %s FROM %s%s ORDER BY %s DESC",
Expand Down

0 comments on commit 02ddf43

Please sign in to comment.