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

Version20150805161000   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 4 1
A up() 0 8 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
 * Class Version20150713132630
11
 *
12
 * @package Chamilo\CoreBundle\Migrations\Schema\V11010
13
 */
14
class Version20150805161000 extends AbstractMigrationChamilo
15
{
16
17
    /**
18
     * @param Schema $schema
19
     */
20
    public function up(Schema $schema)
21
    {
22
        $sessionTable = $schema->getTable('session');
23
24
        $sessionTable->addColumn(
25
            'send_subscription_notification',
26
            \Doctrine\DBAL\Types\Type::BOOLEAN,
27
            ['default' => false]
28
        );
29
    }
30
31
    /**
32
     * @param Schema $schema
33
     */
34
    public function down(Schema $schema)
35
    {
36
        $sessionTable = $schema->getTable('session');
37
        $sessionTable->dropColumn('send_subscription_notification');
38
    }
39
40
}
41