Code Duplication    Length = 23-28 lines in 3 locations

src/Eccube/Resource/doctrine/migration/Version20150804132137.php 1 location

@@ 11-37 (lines=27) @@
8
/**
9
 * Auto-generated Migration: Please modify to your needs!
10
 */
11
class Version20150804132137 extends AbstractMigration
12
{
13
14
    const NAME = 'dtb_base_info';
15
16
    /**
17
     * @param Schema $schema
18
     */
19
    public function up(Schema $schema)
20
    {
21
        // this up() migration is auto-generated, please modify it to your needs
22
        $table = $schema->getTable(self::NAME);
23
        if (!$table->hasColumn('authentication_key')) {
24
            $table->addColumn('authentication_key', 'text', array('NotNull' => false));
25
        }
26
27
    }
28
29
    /**
30
     * @param Schema $schema
31
     */
32
    public function down(Schema $schema)
33
    {
34
        // this down() migration is auto-generated, please modify it to your needs
35
36
    }
37
}
38

src/Eccube/Resource/doctrine/migration/Version20150812132454.php 1 location

@@ 11-38 (lines=28) @@
8
/**
9
 * Auto-generated Migration: Please modify to your needs!
10
 */
11
class Version20150812132454 extends AbstractMigration
12
{
13
14
    const NAME = 'dtb_base_info';
15
16
    /**
17
     * @param Schema $schema
18
     */
19
    public function up(Schema $schema)
20
    {
21
        // this up() migration is auto-generated, please modify it to your needs
22
        $t = $schema->getTable(self::NAME);
23
24
        if($t->hasColumn('option_delivery_fee')){
25
            $t->dropColumn('option_delivery_fee');
26
        }
27
28
    }
29
30
    /**
31
     * @param Schema $schema
32
     */
33
    public function down(Schema $schema)
34
    {
35
        // this down() migration is auto-generated, please modify it to your needs
36
37
    }
38
}
39

src/Eccube/Resource/doctrine/migration/Version20170224150000.php 1 location

@@ 33-55 (lines=23) @@
30
/**
31
 * Auto-generated Migration: Please modify to your needs!
32
 */
33
class Version20170224150000 extends AbstractMigration
34
{
35
36
    /**
37
     * @param Schema $schema
38
     */
39
    public function up(Schema $schema)
40
    {
41
        // this up() migration is auto-generated, please modify it to your needs
42
        $t = $schema->getTable('dtb_page_layout');
43
        if (!$t->hasColumn('meta_tags')) {
44
            $t->addColumn('meta_tags', 'text', array('NotNull' => false));
45
        }
46
    }
47
48
    /**
49
     * @param Schema $schema
50
     */
51
    public function down(Schema $schema)
52
    {
53
        // this down() migration is auto-generated, please modify it to your needs
54
    }
55
}
56