Code Duplication    Length = 9-9 lines in 2 locations

migrations/release_1_5_x/mysql_index.php 1 location

@@ 34-42 (lines=9) @@
31
		);
32
	}
33
34
	public function update_data()
35
	{
36
		return array(
37
			array('if', array(
38
				strpos($this->db->get_sql_layer(), 'mysql') === 0,
39
				array('custom', array(array($this, 'add_topic_title_fulltext'))),
40
			)),
41
		);
42
	}
43
44
	/**
45
	 * Add a MYSQLI FULLTEXT index to phpbb_topics.topic_title

migrations/release_1_5_x/postgres_index.php 1 location

@@ 42-50 (lines=9) @@
39
		);
40
	}
41
42
	public function revert_data()
43
	{
44
		return array(
45
			array('if', array(
46
				$this->db->get_sql_layer() === 'postgres',
47
				array('custom', array(array($this, 'drop_postgres_changes'))),
48
			)),
49
		);
50
	}
51
52
	/**
53
	 * Create PostgreSQL FULLTEXT index for the topic_title