Passed
Push — master ( f762ef...190e8a )
by Julito
09:11
created

Version20150615171900   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 3 1
A up() 0 3 1
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CoreBundle\Migrations\Schema\V110;
5
6
use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
7
use Doctrine\DBAL\Schema\Schema;
8
9
/**
10
 * Version20150615171900 class
11
 * Change in CCourseDescription entity
12
 *
13
 * @author Angel Fernando Quiroz Campos <[email protected]>
14
 */
15
class Version20150615171900 extends AbstractMigrationChamilo
16
{
17
18
    /**
19
     * @param Schema $schema
20
     */
21
    public function up(Schema $schema)
22
    {
23
        $this->addSql('ALTER TABLE c_course_description CHANGE description_type description_type INTEGER NOT NULL DEFAULT 1');
24
    }
25
26
    /**
27
     * @param Schema $schema
28
     */
29
    public function down(Schema $schema)
30
    {
31
        $this->addSql('ALTER TABLE c_course_description CHANGE description_type description_type BOOLEAN NOT NULL');
32
    }
33
34
}
35