2012-04-30 07:53:53 -07:00
|
|
|
ALTER TABLE `{$NAMESPACE}_differential`.`differential_revision`
|
2012-03-05 10:51:47 -08:00
|
|
|
ADD `lastReviewerPHID` varchar(64) BINARY AFTER `authorPHID`;
|
|
|
|
|
2012-04-30 07:53:53 -07:00
|
|
|
UPDATE `{$NAMESPACE}_differential`.`differential_revision`
|
2012-03-05 10:51:47 -08:00
|
|
|
SET `lastReviewerPHID` = (
|
|
|
|
SELECT `authorPHID`
|
2012-04-30 07:53:53 -07:00
|
|
|
FROM `{$NAMESPACE}_differential`.`differential_comment`
|
2012-03-05 10:51:47 -08:00
|
|
|
WHERE `revisionID` = `differential_revision`.`id`
|
|
|
|
AND `action` IN ('accept', 'reject')
|
|
|
|
ORDER BY `id` DESC
|
|
|
|
LIMIT 1
|
|
|
|
);
|