Passed
Pull Request — master (#3)
by
unknown
15:40
created

m190502_163142_create_positions_table   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A safeDown() 0 3 1
A safeUp() 0 5 1
1
<?php
2
3
use Itstructure\AdminModule\components\MultilanguageMigration;
4
5
/**
6
 * Handles the creation of table `positions`.
7
 */
8
class m190502_163142_create_positions_table extends MultilanguageMigration
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function safeUp()
14
    {
15
        $this->createMultiLanguageTable('positions',
16
            [
17
                'name' => $this->string(64),
18
            ]
19
        );
20
    }
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function safeDown()
26
    {
27
        $this->dropMultiLanguageTable('positions');
28
    }
29
}
30