Test Setup Failed
Push — master ( 31ad05...ee210b )
by Yannick
253:41 queued 196:01
created

Version20160418093800::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Application\Migrations\Schema\V111;
5
6
use Application\Migrations\AbstractMigrationChamilo;
7
use Doctrine\DBAL\Schema\Schema;
8
use Doctrine\DBAL\Types\Type;
9
10
/**
11
 * Class Version20160418093800
12
 * Add save_correct_answers column to c_quiz table
13
 * @package Application\Migrations\Schema\V111
14
 */
15
class Version20160418093800 extends AbstractMigrationChamilo
16
{
17
    /**
18
     * @param Schema $schema
19
     * @throws \Doctrine\DBAL\Schema\SchemaException
20
     */
21
    public function up(Schema $schema)
22
    {
23
        $cQuizTable = $schema->getTable('c_quiz');
24
        $cQuizTable->addColumn('save_correct_answers', Type::BOOLEAN);
25
    }
26
27
    /**
28
     * @param Schema $schema
29
     */
30
    public function down(Schema $schema)
31
    {
32
33
    }
34
}