Fix issue with some migrations from 1.10 dropping session_rel_course.category even if doesn't exist in the first place (already blocked on 2 distinct upgrades) - refs BT#13036

pull/2487/head
Yannick Warnier 8 years ago
parent 505d8eb182
commit e17248a993
  1. 7
      app/Migrations/Schema/V111/Version111.php

@ -532,7 +532,12 @@ class Version111 extends AbstractMigrationChamilo
} }
} }
$this->addSql('ALTER TABLE session_rel_course DROP category'); if ($schema->hasTable('session_rel_course')) {
$table = $schema->getTable('session_rel_course');
if ($table->hasColumn('category')) {
$this->addSql('ALTER TABLE session_rel_course DROP category');
}
}
} }
/** /**

Loading…
Cancel
Save