DB change c_quiz.save_correct_answers see BT#15844

pull/3006/head
Julio Montoya 5 years ago
parent 6a4a3b3a28
commit 3af017dd5e
  1. 2
      src/CoreBundle/Migrations/Schema/V200/Version20.php
  2. 9
      src/CourseBundle/Entity/CQuiz.php

@ -568,6 +568,8 @@ class Version20 extends AbstractMigrationChamilo
);
}
$this->addSql('ALTER TABLE c_quiz MODIFY COLUMN save_correct_answers INT NULL DEFAULT NULL');
$table = $schema->getTable('c_lp_item_view');
if ($table->hasIndex('idx_c_lp_item_view_cid_id_view_count') == false) {
$this->addSql(

@ -155,8 +155,9 @@ class CQuiz
protected $propagateNeg;
/**
* @var bool
* @ORm\Column(name="save_correct_answers", type="boolean", nullable=false)
* @var int
*
* @ORm\Column(name="save_correct_answers", type="integer", nullable=true)
*/
protected $saveCorrectAnswers;
@ -633,7 +634,7 @@ class CQuiz
}
/**
* @param $saveCorrectAnswers boolean
* @param int $saveCorrectAnswers
*
* @return CQuiz
*/
@ -645,7 +646,7 @@ class CQuiz
}
/**
* @return bool
* @return int
*/
public function getSaveCorrectAnswers()
{

Loading…
Cancel
Save