1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 04:42:40 +01:00

Remove viewPolicy from Badges

Summary: Drops the sql column.

Test Plan: View logged in and logged out badges, edited some too.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13715
This commit is contained in:
Chad Little 2015-07-25 16:41:41 -07:00
parent b322614287
commit c8977d580e
2 changed files with 2 additions and 2 deletions

View file

@ -0,0 +1,2 @@
ALTER TABLE {$NAMESPACE}_badges.badges_badge
DROP COLUMN viewPolicy;

View file

@ -14,7 +14,6 @@ final class PhabricatorBadgesBadge extends PhabricatorBadgesDAO
protected $icon;
protected $quality;
protected $mailKey;
protected $viewPolicy;
protected $editPolicy;
protected $status;
protected $creatorPHID;
@ -73,7 +72,6 @@ final class PhabricatorBadgesBadge extends PhabricatorBadgesDAO
->setIcon(self::DEFAULT_ICON)
->setQuality(self::DEFAULT_QUALITY)
->setCreatorPHID($actor->getPHID())
->setViewPolicy($view_policy)
->setEditPolicy($edit_policy)
->setStatus(self::STATUS_OPEN);
}