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

Version20160623143200::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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