From 2ed500fbd44aeb4109e6f5ca2a4d49c4c0db58f6 Mon Sep 17 00:00:00 2001 From: John Linhart Date: Fri, 12 May 2017 14:15:35 -0400 Subject: [PATCH] Fixed issue where the migration was processed even if it was applied already --- app/migrations/Version20170303000000.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/migrations/Version20170303000000.php b/app/migrations/Version20170303000000.php index 109903a53ce..a0381dd7a5e 100644 --- a/app/migrations/Version20170303000000.php +++ b/app/migrations/Version20170303000000.php @@ -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'); } }