1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 01:02:42 +01:00
phorge-phorge/resources/sql/patches/135.datecommitted.sql

8 lines
283 B
MySQL
Raw Normal View History

UPDATE {$NAMESPACE}_differential.differential_revision SET
dateCommitted = (
SELECT MIN(dateCreated)
FROM {$NAMESPACE}_differential.differential_comment
WHERE revisionID = differential_revision.id AND action = 'commit'
)
WHERE status = 3 AND dateCommitted IS NULL;