Skip to content

Commit

Permalink
Fixed issue where the migration was processed even if it was applied …
Browse files Browse the repository at this point in the history
…already
  • Loading branch information
escopecz committed May 12, 2017
1 parent 338d834 commit 2ed500f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/migrations/Version20170303000000.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class Version20170303000000 extends AbstractMauticMigration
*/
public function preUp(Schema $schema)
{
$table = $schema->getTable(MAUTIC_TABLE_PREFIX.'leads');
if ($table->hasIndex('date_added_country_index')) {
$table = $schema->getTable("{$this->prefix}leads");
if ($table->hasIndex("{$this->prefix}date_added_country_index")) {
throw new SkipMigrationException('Schema includes this migration');
}
}
Expand Down

0 comments on commit 2ed500f

Please sign in to comment.