m150625_000003_update_audit_trail   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 4 1
A down() 0 4 1
1
<?php
2
3
use yii\db\Schema;
4
5
class m150625_000003_update_audit_trail extends \yii\db\Migration
6
{
7
    const TABLE = '{{%audit_trail}}';
8
9
    public function up()
10
    {
11
        $this->renameColumn(self::TABLE, 'stamp', 'created');
12
    }
13
14
    public function down()
15
    {
16
        $this->renameColumn(self::TABLE, 'created', 'stamp');
17
    }
18
}
19