Ver Fonte

Fix c_quiz_answer.id changed to default NULL

jmontoyaa há 8 anos atrás
pai
commit
c9e3da2c7d
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      app/Migrations/Schema/V110/Version110.php

+ 1 - 0
app/Migrations/Schema/V110/Version110.php

@@ -412,6 +412,7 @@ class Version110 extends AbstractMigrationChamilo
         $this->addSql("ALTER TABLE c_tool_intro ADD COLUMN iid int NOT NULL PRIMARY KEY AUTO_INCREMENT");
 
         $this->addSql("ALTER TABLE c_quiz_answer MODIFY COLUMN c_id INT NOT NULL");
+        $this->addSql("ALTER TABLE c_quiz_answer MODIFY COLUMN id INT DEFAULT NULL");
         $this->addSql("ALTER TABLE c_quiz_answer MODIFY COLUMN id_auto int unsigned NOT NULL");
         $this->addSql("ALTER TABLE c_quiz_answer DROP PRIMARY KEY");
         $this->addSql("ALTER TABLE c_quiz_answer MODIFY COLUMN id_auto int unsigned DEFAULT NULL");