Passed
Pull Request — master (#5)
by
unknown
14:27
created

m171230_130253_create_settings_table::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
nc 1
nop 0
dl 0
loc 3
c 0
b 0
f 0
cc 1
rs 10
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->tinyInteger(),
17
            'initUserRole' => $this->string(64),
18
            'regBlock' => $this->tinyInteger(),
19
        ]);
20
    }
21
22
    /**
23
     * @inheritdoc
24
     */
25
    public function down()
26
    {
27
        $this->dropTable('settings');
28
    }
29
}
30