1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +01:00
phorge-phorge/resources/sql/patches/113.lastreviewer.sql
vrana f5f7987013 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
2012-03-05 11:04:55 -08:00

12 lines
390 B
SQL

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
);