Add new LP DB changes see BT#5765

1.10.x
Julio Montoya 11 years ago
parent 2021babc48
commit d8539af9ea
  1. 28
      src/Chamilo/CoreBundle/Migrations/Schema/V110/Version20150603181728.php
  2. 14
      src/Chamilo/CourseBundle/Entity/CLp.php

@ -0,0 +1,28 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Migrations\Schema\V110;
use Doctrine\DBAL\Schema\Schema;
/**
* Lp changes
*/
class Version20150603181728 extends AbstractMigration
{
/**
* @param Schema $schema
*/
public function up(Schema $schema)
{
$this->addSql('ALTER TABLE c_lp ADD max_attempts INT NOT NULL, ADD subscribe_users INT NOT NULL DEFAULT 0');
}
/**
* @param Schema $schema
*/
public function down(Schema $schema)
{
$this->addSql('ALTER TABLE c_lp DROP max_attempts, DROP subscribe_users');
}
}

@ -211,6 +211,20 @@ class CLp
*/
private $categoryId;
/**
* @var integer
*
* @ORM\Column(name="max_attempts", type="integer", nullable=false)
*/
private $maxAttempts;
/**
* @var integer
*
* @ORM\Column(name="subscribe_users", type="integer", nullable=false)
*/
private $subscribeUsers;
/**
* @var \DateTime
*

Loading…
Cancel
Save