Fix migration to 1.10.x on course_rel_user table

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent c6be0306b0
commit 41c2674578
  1. 5
      app/Migrations/Schema/V110/Version110.php

@ -487,6 +487,11 @@ class Version110 extends AbstractMigrationChamilo
$this->addSql("UPDATE settings_current SET selected_value = 'UTF-8' WHERE variable = 'platform_charset'");
$this->addSql("ALTER TABLE course_rel_user DROP PRIMARY KEY");
$this->addSql("ALTER TABLE course_rel_user ADD COLUMN id INT NOT NULL PRIMARY KEY AUTO_INCREMENT");
$this->addSql("ALTER TABLE course_rel_user MODIFY COLUMN user_id INT NULL");
$this->addSql("ALTER TABLE user MODIFY COLUMN user_id INT NULL");
}
/**

Loading…
Cancel
Save