mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
0330ea575d
Summary: Ref T8996, Convert badge recipients from Edges to actual BadgeAward objects Test Plan: Create badge, award it to recipient. Make sure adding/removing recipients works. (Still need to migrate exisiting recipients to new table and need to create activity feed blurbs) Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: chad, Korvin Maniphest Tasks: T8996 Differential Revision: https://secure.phabricator.com/D15014
10 lines
425 B
SQL
10 lines
425 B
SQL
CREATE TABLE {$NAMESPACE}_badges.badges_award (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
badgePHID VARBINARY(64) NOT NULL,
|
|
recipientPHID VARBINARY(64) NOT NULL,
|
|
awarderPHID varbinary(64) NOT NULL,
|
|
dateCreated INT UNSIGNED NOT NULL,
|
|
dateModified INT UNSIGNED NOT NULL,
|
|
UNIQUE KEY `key_badge` (badgePHID, recipientPHID),
|
|
KEY `key_recipient` (recipientPHID)
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|