diff --git a/resources/sql/autopatches/20170427.owners.01.long.sql b/resources/sql/autopatches/20170427.owners.01.long.sql new file mode 100644 index 0000000000..01a463f52a --- /dev/null +++ b/resources/sql/autopatches/20170427.owners.01.long.sql @@ -0,0 +1,2 @@ +ALTER TABLE {$NAMESPACE}_owners.owners_package + DROP originalName; diff --git a/src/applications/owners/storage/PhabricatorOwnersPackage.php b/src/applications/owners/storage/PhabricatorOwnersPackage.php index 1b12365e4f..2b22a7a145 100644 --- a/src/applications/owners/storage/PhabricatorOwnersPackage.php +++ b/src/applications/owners/storage/PhabricatorOwnersPackage.php @@ -12,7 +12,6 @@ final class PhabricatorOwnersPackage PhabricatorNgramsInterface { protected $name; - protected $originalName; protected $auditingEnabled; protected $autoReview; protected $description; @@ -105,8 +104,7 @@ final class PhabricatorOwnersPackage self::CONFIG_TIMESTAMPS => false, self::CONFIG_AUX_PHID => true, self::CONFIG_COLUMN_SCHEMA => array( - 'name' => 'sort128', - 'originalName' => 'text255', + 'name' => 'sort', 'description' => 'text', 'primaryOwnerPHID' => 'phid?', 'auditingEnabled' => 'bool', @@ -137,9 +135,6 @@ final class PhabricatorOwnersPackage public function setName($name) { $this->name = $name; - if (!$this->getID()) { - $this->originalName = $name; - } return $this; }