Add c_quiz.page_result_configuration field BT#15844

pull/3006/head
Julio Montoya 5 years ago
parent 48fb1fd148
commit ca8cc4bcd0
  1. 6
      src/CoreBundle/Migrations/Schema/V200/Version20.php
  2. 7
      src/CourseBundle/Entity/CQuiz.php

@ -562,6 +562,12 @@ class Version20 extends AbstractMigrationChamilo
);
}
if ($table->hasColumn('page_result_configuration') === false) {
$this->addSql(
"ALTER TABLE c_quiz ADD page_result_configuration LONGTEXT DEFAULT NULL COMMENT '(DC2Type:array)'"
);
}
$table = $schema->getTable('c_lp_item_view');
if ($table->hasIndex('idx_c_lp_item_view_cid_id_view_count') == false) {
$this->addSql(

@ -230,6 +230,13 @@ class CQuiz
*/
protected $autoLaunch;
/**
* @var int
*
* @ORM\Column(name="page_result_configuration", type="array", nullable=true)
*/
protected $pageResultConfiguration;
/**
* CQuiz constructor.
*/

Loading…
Cancel
Save