diff --git a/app/Migrations/Schema/V110/Version110.php b/app/Migrations/Schema/V110/Version110.php index 594e46103e..33c3d30c27 100644 --- a/app/Migrations/Schema/V110/Version110.php +++ b/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 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 track_e_access ADD COLUMN c_id int NOT NULL");