Add usergroup.author_id db change

pull/2487/merge
Julio Montoya 7 years ago
parent 7214ff7bc5
commit 95973606cc
  1. 5
      app/Migrations/Schema/V200/Version20.php
  2. 4
      src/CoreBundle/Entity/Usergroup.php

@ -579,6 +579,11 @@ class Version20 extends AbstractMigrationChamilo
if (!$table->hasColumn('autolaunch')) {
$this->addSql('ALTER TABLE c_quiz ADD autolaunch TINYINT(1) DEFAULT 0 NOT NULL');
}
$table = $schema->getTable('usergroup');
if (!$table->hasColumn('author_id')) {
$this->addSql('ALTER TABLE usergroup ADD author_id INT DEFAULT NULL');
}
}
/**

@ -69,9 +69,9 @@ class Usergroup
/**
* @var string
*
* ORM\Column(name="author_id", type="integer", nullable=true)
* @ORM\Column(name="author_id", type="integer", nullable=true)
*/
//protected $authorId;
protected $authorId;
/**
* @var int

Loading…
Cancel
Save