Code Duplication    Length = 12-17 lines in 3 locations

includes/installer/DatabaseUpdater.php 2 locations

@@ 995-1007 (lines=13) @@
992
	/**
993
	 * Populates the log_user_text field in the logging table
994
	 */
995
	protected function doLogUsertextPopulation() {
996
		if ( !$this->updateRowExists( 'populate log_usertext' ) ) {
997
			$this->output(
998
				"Populating log_user_text field, printing progress markers. For large\n" .
999
				"databases, you may want to hit Ctrl-C and do this manually with\n" .
1000
				"maintenance/populateLogUsertext.php.\n"
1001
			);
1002
1003
			$task = $this->maintenance->runChild( 'PopulateLogUsertext' );
1004
			$task->execute();
1005
			$this->output( "done.\n" );
1006
		}
1007
	}
1008
1009
	/**
1010
	 * Migrate log params to new table and index for searching
@@ 1012-1023 (lines=12) @@
1009
	/**
1010
	 * Migrate log params to new table and index for searching
1011
	 */
1012
	protected function doLogSearchPopulation() {
1013
		if ( !$this->updateRowExists( 'populate log_search' ) ) {
1014
			$this->output(
1015
				"Populating log_search table, printing progress markers. For large\n" .
1016
				"databases, you may want to hit Ctrl-C and do this manually with\n" .
1017
				"maintenance/populateLogSearch.php.\n" );
1018
1019
			$task = $this->maintenance->runChild( 'PopulateLogSearch' );
1020
			$task->execute();
1021
			$this->output( "done.\n" );
1022
		}
1023
	}
1024
1025
	/**
1026
	 * Updates the timestamps in the transcache table

includes/installer/MysqlUpdater.php 1 location

@@ 913-929 (lines=17) @@
910
		}
911
	}
912
913
	protected function doCategoryPopulation() {
914
		if ( $this->updateRowExists( 'populate category' ) ) {
915
			$this->output( "...category table already populated.\n" );
916
917
			return;
918
		}
919
920
		$this->output(
921
			"Populating category table, printing progress markers. " .
922
			"For large databases, you\n" .
923
			"may want to hit Ctrl-C and do this manually with maintenance/\n" .
924
			"populateCategory.php.\n"
925
		);
926
		$task = $this->maintenance->runChild( 'PopulateCategory' );
927
		$task->execute();
928
		$this->output( "Done populating category table.\n" );
929
	}
930
931
	protected function doPopulateParentId() {
932
		if ( !$this->updateRowExists( 'populate rev_parent_id' ) ) {