release_1_4_1_schema   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 7
c 2
b 0
f 0
dl 0
loc 21
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A depends_on() 0 4 1
A update_schema() 0 6 1
A revert_schema() 0 2 1
1
<?php
2
/**
3
 *
4
 * Precise Similar Topics
5
 *
6
 * @copyright (c) 2017 Matt Friedman
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace vse\similartopics\migrations;
12
13
class release_1_4_1_schema extends \phpbb\db\migration\migration
0 ignored issues
show
Bug introduced by
The type phpbb\db\migration\migration was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
14
{
15
	public static function depends_on()
16
	{
17
		return array('\vse\similartopics\migrations\release_1_3_1_data',
18
					 '\vse\similartopics\migrations\release_1_4_0_schema');
19
	}
20
21
	public function update_schema()
22
	{
23
		return array(
24
			'change_columns'	=> array(
25
				$this->table_prefix . 'forums'	=> array(
26
					'similar_topic_forums'		=> array('MTEXT', null),
27
				),
28
			),
29
		);
30
	}
31
32
	public function revert_schema()
33
	{
34
	}
35
}
36