Page MenuHomePhabricator

D17798.diff
No OneTemporary

D17798.diff

diff --git a/resources/sql/autopatches/20170427.owners.01.long.sql b/resources/sql/autopatches/20170427.owners.01.long.sql
new file mode 100644
--- /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
--- a/src/applications/owners/storage/PhabricatorOwnersPackage.php
+++ b/src/applications/owners/storage/PhabricatorOwnersPackage.php
@@ -12,7 +12,6 @@
PhabricatorNgramsInterface {
protected $name;
- protected $originalName;
protected $auditingEnabled;
protected $autoReview;
protected $description;
@@ -105,8 +104,7 @@
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 @@
public function setName($name) {
$this->name = $name;
- if (!$this->getID()) {
- $this->originalName = $name;
- }
return $this;
}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 3:43 PM (20 h, 43 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6907934
Default Alt Text
D17798.diff (1 KB)

Event Timeline