Passed
Branch master (ecb7f7)
by Andrey
17:46
created

m190502_163142_create_positions_table   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 20
c 1
b 0
f 0
rs 10
wmc 2

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