Index: branches/wmf/1.17wmf1/extensions/FlaggedRevs/FlaggedRevision.php |
— | — | @@ -310,6 +310,10 @@ |
311 | 311 | 'fr_img_timestamp' => $dbw->timestampOrNull( $this->getFileTimestamp() ), |
312 | 312 | 'fr_img_sha1' => $this->getFileSha1() |
313 | 313 | ); |
| 314 | + # Intermediate code for wmf schema change |
| 315 | + if ( $dbw->fieldExists( 'flaggedrevs', 'fr_rev_timestamp' ) ) { |
| 316 | + $revRow['fr_rev_timestamp'] = $dbw->timestamp( $this->getRevTimestamp() ); |
| 317 | + } |
314 | 318 | # Update flagged revisions table |
315 | 319 | $dbw->replace( 'flaggedrevs', |
316 | 320 | array( array( 'fr_page_id', 'fr_rev_id' ) ), $revRow, __METHOD__ ); |