Code Duplication    Length = 16-19 lines in 2 locations

src/Migrations/Version20150614010455.php 1 location

@@ 8-23 (lines=16) @@
5
use Doctrine\DBAL\Schema\Schema;
6
use Doctrine\Migrations\AbstractMigration;
7
8
class Version20150614010455 extends AbstractMigration
9
{
10
    public function getDescription() : string
11
    {
12
        return '';
13
    }
14
15
    public function up(Schema $schema) : void
16
    {
17
        $schema->getTable('history')->addColumn('shortDescription', 'string', ['length' => 4294967295, 'default' => NULL, 'notnull' => false]);
18
    }
19
20
    public function down(Schema $schema) : void
21
    {
22
    }
23
}
24

src/Migrations/Version20210410060602.php 1 location

@@ 10-28 (lines=19) @@
7
use Doctrine\DBAL\Schema\Schema;
8
use Doctrine\Migrations\AbstractMigration;
9
10
final class Version20210410060602 extends AbstractMigration
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