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

m160313_153425_session_move   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 4 1
A down() 0 6 1
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