mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01:00
1f2cf78c1b
Summary: This is slightly more complicated for this reason: - We don't set `dateCommitted` for normal commits, only for markcommitted. -- We need to add this date to old revisions now. Test Plan: Reparse a revision - commit date was set. Conduit `markcommitted` - commit date was set. Run SQL script. Display closed revision. Reviewers: epriestley Reviewed By: epriestley CC: aran, Koolvin Differential Revision: https://secure.phabricator.com/D2282
7 lines
281 B
SQL
7 lines
281 B
SQL
UPDATE phabricator_differential.differential_revision SET
|
|
dateCommitted = (
|
|
SELECT MIN(dateCreated)
|
|
FROM phabricator_differential.differential_comment
|
|
WHERE revisionID = differential_revision.id AND action = 'commit'
|
|
)
|
|
WHERE status = 3 AND dateCommitted IS NULL;
|