Completed
Push — master ( 193986...cdf399 )
by Andrey
11:47
created

m171230_130253_create_settings_table   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 7 1
A down() 0 4 1
1
<?php
2
3
use yii\db\Migration;
4
5
/**
6
 * Handles the creation of table `settings`.
7
 */
8
class m171230_130253_create_settings_table extends Migration
9
{
10
    /**
11
     * @inheritdoc
12
     */
13
    public function up()
14
    {
15
        $this->createTable('settings', [
16
            'initUserStatus' => $this->integer(2),
17
            'initUserRole' => $this->string(64),
18
        ]);
19
    }
20
21
    /**
22
     * @inheritdoc
23
     */
24
    public function down()
25
    {
26
        $this->dropTable('settings');
27
    }
28
}
29