safeDown()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 1
b 0
f 1
cc 1
nc 1
nop 0
ccs 0
cts 3
cp 0
crap 2
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