foreach( $updates as $funcList ) {
$func = $funcList[0];
$arg = $funcList[1];
+ $origParams = $funcList[2];
$ret = call_user_func_array( $func, $arg );
flush();
- $this->updatesSkipped[] = $arg;
+ $this->updatesSkipped[] = $origParams;
}
}
$updatesDone = array();
$updatesSkipped = array();
foreach ( $updates as $params ) {
+ $origParams = $params;
$func = array_shift( $params );
if( !is_array( $func ) && method_exists( $this, $func ) ) {
$func = array( $this, $func );
$ret = call_user_func_array( $func, $params );
flush();
if( $ret !== false ) {
- $updatesDone[] = $params;
+ $updatesDone[] = $origParams;
} else {
- $updatesSkipped[] = array( $func, $params );
+ $updatesSkipped[] = array( $func, $params, $origParams );
}
}
$this->updatesSkipped = array_merge( $this->updatesSkipped, $updatesSkipped );
} elseif( $this->updateRowExists( $updateKey ) ) {
$this->output( "...$field in table $table already modified by patch $patch.\n" );
} else {
- return $this->applyPatch( $patch, $fullpath, "Modifying $field field of table $table" );
$this->insertUpdateRow( $updateKey );
+ return $this->applyPatch( $patch, $fullpath, "Modifying $field field of table $table" );
}
return true;
}
protected function doUpdateTranscacheField() {
if ( $this->updateRowExists( 'convert transcache field' ) ) {
$this->output( "...transcache tc_time already converted.\n" );
- return;
+ return true;
}
return $this->applyPatch( 'patch-tc-timestamp.sql', false,