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. 5
      app/Migrations/Schema/V111/Version111.php

@ -532,8 +532,13 @@ class Version111 extends AbstractMigrationChamilo
}
}
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');
}
}
}
/**
* @param Schema $schema

Loading…
Cancel
Save