Code Duplication    Length = 19-20 lines in 2 locations

includes/installer/MysqlUpdater.php 2 locations

@@ 980-999 (lines=20) @@
977
		return true;
978
	}
979
980
	protected function doNonUniquePlTlIl() {
981
		$info = $this->db->indexInfo( 'pagelinks', 'pl_namespace' );
982
		if ( is_array( $info ) && $info[0]->Non_unique ) {
983
			$this->output( "...pl_namespace, tl_namespace, il_to indices are already non-UNIQUE.\n" );
984
985
			return true;
986
		}
987
		if ( $this->skipSchema ) {
988
			$this->output( "...skipping schema change (making pl_namespace, tl_namespace " .
989
				"and il_to indices non-UNIQUE).\n" );
990
991
			return false;
992
		}
993
994
		return $this->applyPatch(
995
			'patch-pl-tl-il-nonunique.sql',
996
			false,
997
			'Making pl_namespace, tl_namespace and il_to indices non-UNIQUE'
998
		);
999
	}
1000
1001
	protected function doUpdateMimeMinorField() {
1002
		if ( $this->updateRowExists( 'mime_minor_length' ) ) {
@@ 1067-1085 (lines=19) @@
1064
		);
1065
	}
1066
1067
	protected function doIwlinksIndexNonUnique() {
1068
		$info = $this->db->indexInfo( 'iwlinks', 'iwl_prefix_title_from' );
1069
		if ( is_array( $info ) && $info[0]->Non_unique ) {
1070
			$this->output( "...iwl_prefix_title_from index is already non-UNIQUE.\n" );
1071
1072
			return true;
1073
		}
1074
		if ( $this->skipSchema ) {
1075
			$this->output( "...skipping schema change (making iwl_prefix_title_from index non-UNIQUE).\n" );
1076
1077
			return false;
1078
		}
1079
1080
		return $this->applyPatch(
1081
			'patch-iwl_prefix_title_from-non-unique.sql',
1082
			false,
1083
			'Making iwl_prefix_title_from index non-UNIQUE'
1084
		);
1085
	}
1086
1087
	protected function doUserNewTalkUseridUnsigned() {
1088
		if ( !$this->doTable( 'user_newtalk' ) ) {