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 (if needed).

migrations/release_1_5_x/postgres_index.php 1 location

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