mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-25 23:10:57 +01:00
f0db6e4818
Summary: Modernize Project edges to subclass `PhabricatorEdgeType`. Largely based on D11045. Test Plan: Add a member to a project, saw new rows in the `phabricator_project.edge` and `phabricator_user.edge` tables. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11111
8 lines
362 B
SQL
8 lines
362 B
SQL
/* These are here so `grep` will find them if we ever change things: */
|
|
|
|
/* PhabricatorProjectProjectHasMemberEdgeType::EDGECONST = 13 */
|
|
/* PhabricatorEdgeConfig::TYPE_OBJECT_HAS_SUBSCRIBER = 21 */
|
|
|
|
INSERT IGNORE INTO {$NAMESPACE}_project.edge (src, type, dst, dateCreated)
|
|
SELECT src, 21, dst, dateCreated FROM {$NAMESPACE}_project.edge
|
|
WHERE type = 13;
|