mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01:00
12 lines
417 B
SQL
12 lines
417 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 `phabricator_differential`.`differential_comment`
|
|
WHERE `revisionID` = `differential_revision`.`id`
|
|
AND `action` IN ('accept', 'reject')
|
|
ORDER BY `id` DESC
|
|
LIMIT 1
|
|
);
|