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

Version20150615171900::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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