Check column

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 88b6da5dd6
commit 2bf03410f4
  1. 5
      app/Migrations/Schema/V110/Version110.php

@ -97,7 +97,10 @@ class Version110 extends AbstractMigrationChamilo
$this->addSql("ALTER TABLE session_rel_user ADD COLUMN duration int"); $this->addSql("ALTER TABLE session_rel_user ADD COLUMN duration int");
} }
$this->addSql("ALTER TABLE skill ADD COLUMN criteria text"); $table = $schema->getTable('skill');
if (!$table->hasColumn('criteria')) {
$this->addSql("ALTER TABLE skill ADD COLUMN criteria text");
}
$this->addSql("ALTER TABLE gradebook_category ADD COLUMN generate_certificates TINYINT NOT NULL DEFAULT 0"); $this->addSql("ALTER TABLE gradebook_category ADD COLUMN generate_certificates TINYINT NOT NULL DEFAULT 0");
$this->addSql("ALTER TABLE track_e_access ADD COLUMN c_id int NOT NULL"); $this->addSql("ALTER TABLE track_e_access ADD COLUMN c_id int NOT NULL");

Loading…
Cancel
Save