From c8977d580ef14897a96b34ea52dfafc603f366ce Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sat, 25 Jul 2015 16:41:41 -0700 Subject: [PATCH] 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 --- resources/sql/autopatches/20150725.badges.viewpolicy.3.sql | 2 ++ src/applications/badges/storage/PhabricatorBadgesBadge.php | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 resources/sql/autopatches/20150725.badges.viewpolicy.3.sql diff --git a/resources/sql/autopatches/20150725.badges.viewpolicy.3.sql b/resources/sql/autopatches/20150725.badges.viewpolicy.3.sql new file mode 100644 index 0000000000..a5933f4ade --- /dev/null +++ b/resources/sql/autopatches/20150725.badges.viewpolicy.3.sql @@ -0,0 +1,2 @@ +ALTER TABLE {$NAMESPACE}_badges.badges_badge + DROP COLUMN viewPolicy; diff --git a/src/applications/badges/storage/PhabricatorBadgesBadge.php b/src/applications/badges/storage/PhabricatorBadgesBadge.php index 3a12056b5d..d7e13ffc61 100644 --- a/src/applications/badges/storage/PhabricatorBadgesBadge.php +++ b/src/applications/badges/storage/PhabricatorBadgesBadge.php @@ -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); }