Completed
Push — develop ( ce1a1e...d1aa02 )
by Serhii
02:16 queued 11s
created

Version20210410060602::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 7
Ratio 100 %

Importance

Changes 0
Metric Value
dl 7
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DoctrineMigrations;
6
7
use Doctrine\DBAL\Schema\Schema;
8
use Doctrine\Migrations\AbstractMigration;
9
10 View Code Duplication
final class Version20210410060602 extends AbstractMigration
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
11
{
12
    public function getDescription() : string
13
    {
14
        return 'Add Age Limit to the Performance';
15
    }
16
17
    public function up(Schema $schema) : void
18
    {
19
        $schema
20
            ->getTable("performances")
21
            ->addColumn("ageLimit", "integer", ['notnull' => true, 'default' => 0])
22
        ;
23
    }
24
25
    public function down(Schema $schema) : void
26
    {
27
    }
28
}
29