Failed Conditions
Push — master ( 660616...b19e2b )
by Kentaro
48:07
created

Version20170224150000::up()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 8
Ratio 100 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 1
dl 8
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.lockon.co.jp/
9
 *
10
 * This program is free software; you can redistribute it and/or
11
 * modify it under the terms of the GNU General Public License
12
 * as published by the Free Software Foundation; either version 2
13
 * of the License, or (at your option) any later version.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 * GNU General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU General Public License
21
 * along with this program; if not, write to the Free Software
22
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23
 */
24
25
namespace DoctrineMigrations;
26
27
use Doctrine\DBAL\Migrations\AbstractMigration;
28
use Doctrine\DBAL\Schema\Schema;
29
30
/**
31
 * Auto-generated Migration: Please modify to your needs!
32
 */
33 View Code Duplication
class Version20170224150000 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...
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