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

Version20160623143200   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 7 1
A down() 0 2 1
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CoreBundle\Migrations\Schema\V111;
5
6
use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
7
use Doctrine\DBAL\Schema\Schema;
8
use Doctrine\DBAL\Types\Type;
9
10
/**
11
 * Class Version20160623143200
12
 * Remove chatcall_date, chatcall_text, chatcall_user_id from User table
13
 * @package Chamilo\CoreBundle\Migrations\Schema\V111
14
 */
15
class Version20160623143200 extends AbstractMigrationChamilo
16
{
17
    /**
18
     * @param Schema $schema
19
     * @throws \Doctrine\DBAL\Schema\SchemaException
20
     */
21
    public function up(Schema $schema)
22
    {
23
        $schema
24
            ->getTable('user')
25
            ->dropColumn('chatcall_user_id')
26
            ->dropColumn('chatcall_date')
27
            ->dropColumn('chatcall_text');
28
    }
29
30
    /**
31
     * @param Schema $schema
32
     */
33
    public function down(Schema $schema)
34
    {
35
    }
36
}
37