Passed
Push — 2.7.11 ( ...beab38 )
by steve
18:35 queued 14s
created

m20211108_222100_cms_static_long_text::safeUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
use neon\core\db\Migration;
4
5
/**
6
 * update column to be long text
7
 */
8
class m20211108_222100_cms_static_long_text extends Migration
9
{
10
	public function safeUp()
11
	{
12
		$this->alterColumn('cms_static_content', 'content', 'longtext');
13
	}
14
15
	public function safeDown()
16
	{
17
		$this->alterColumn('cms_static_content', 'content', 'text');
18
	}
19
}
20