1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 04:50:55 +01:00
phorge-phorge/resources/sql/autopatches/20140211.dx.3.migsubscriptions.sql

11 lines
393 B
MySQL
Raw Normal View History

/* For `grep`: */
/* PhabricatorObjectHasSubscriberEdgeType::EDGECONST = 21 */
INSERT IGNORE INTO {$NAMESPACE}_differential.edge (src, type, dst, seq)
SELECT rev.phid, 21, rel.objectPHID, rel.sequence
FROM {$NAMESPACE}_differential.differential_revision rev
JOIN {$NAMESPACE}_differential.differential_relationship rel
ON rev.id = rel.revisionID
WHERE relation = 'subd';