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