m20201112_134604_firefly_alt_and_cpation   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 5
dl 0
loc 13
rs 10
c 1
b 0
f 1
ccs 0
cts 7
cp 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A safeUp() 0 4 1
A safeDown() 0 5 1
1
<?php
2
3
use neon\core\db\Migration;
4
5
class m20201112_134604_firefly_alt_and_cpation extends Migration
6
{
7
	public function safeUp()
8
	{
9
		$this->addColumn('firefly_file_manager', 'alt', $this->string());
10
		$this->addColumn('firefly_file_manager', 'caption', $this->string());
11
	}
12
13
	public function safeDown()
14
	{
15
		// create a down migration
16
		$this->dropColumn('firefly_file_manager', 'alt');
17
		$this->dropColumn('firefly_file_manager', 'caption');
18
	}
19
}
20