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

m20211108_222100_cms_static_long_text   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A safeDown() 0 3 1
A safeUp() 0 3 1
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