Revert rP87c60abbd02d, apply D1772

Test Plan:
Apply SQL patch.
Visit /differential/.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D1781
This commit is contained in:
vrana
2012-03-05 10:51:47 -08:00
parent 846cea715f
commit f5f7987013
4 changed files with 30 additions and 9 deletions

View File

@@ -0,0 +1,12 @@
ALTER TABLE `phabricator_differential`.`differential_revision`
ADD `lastReviewerPHID` varchar(64) BINARY AFTER `authorPHID`;
UPDATE `phabricator_differential`.`differential_revision`
SET `lastReviewerPHID` = (
SELECT `authorPHID`
FROM `differential_comment`
WHERE `revisionID` = `differential_revision`.`id`
AND `action` IN ('accept', 'reject')
ORDER BY `id` DESC
LIMIT 1
);