Completed
Push — master ( 187bdb...4894ab )
by Tobias
13:33
created

m160313_153425_session_move::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
use yii\db\Migration;
4
5
class m160313_153425_session_move extends Migration
6
{
7
    public function up()
8
    {
9
        $this->renameTable('{{%session}}', '__tmp_session');
10
    }
11
12
    public function down()
13
    {
14
        echo "m170125_172631_session_move cannot be reverted.\n";
15
16
        return false;
17
    }
18
19
}
20