Skip to content

Commit

Permalink
Use dynamic version column name in markMigrated and markNotMigrated
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim committed Dec 7, 2015
1 parent 0a58dbc commit afe76df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/DBAL/Migrations/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function markMigrated()
$this->configuration->createMigrationTable();
$this->connection->insert(
$this->configuration->getMigrationsTableName(),
['version' => $this->version]
[$this->configuration->getMigrationsColumnName() => $this->version]
);
}

Expand All @@ -161,7 +161,7 @@ public function markNotMigrated()
$this->configuration->createMigrationTable();
$this->connection->delete(
$this->configuration->getMigrationsTableName(),
['version' => $this->version]
[$this->configuration->getMigrationsColumnName() => $this->version]
);
}

Expand Down

0 comments on commit afe76df

Please sign in to comment.