Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15385714
D19063.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D19063.id.diff
View Options
diff --git a/resources/sql/autopatches/20180212.harbor.01.receiver.sql b/resources/sql/autopatches/20180212.harbor.01.receiver.sql
new file mode 100644
--- /dev/null
+++ b/resources/sql/autopatches/20180212.harbor.01.receiver.sql
@@ -0,0 +1,2 @@
+ALTER TABLE {$NAMESPACE}_harbormaster.harbormaster_buildmessage
+ CHANGE buildTargetPHID receiverPHID VARBINARY(64) NOT NULL;
diff --git a/src/applications/harbormaster/query/HarbormasterBuildMessageQuery.php b/src/applications/harbormaster/query/HarbormasterBuildMessageQuery.php
--- a/src/applications/harbormaster/query/HarbormasterBuildMessageQuery.php
+++ b/src/applications/harbormaster/query/HarbormasterBuildMessageQuery.php
@@ -71,7 +71,7 @@
if ($this->receiverPHIDs !== null) {
$where[] = qsprintf(
$conn,
- 'buildTargetPHID IN (%Ls)',
+ 'receiverPHID IN (%Ls)',
$this->receiverPHIDs);
}
diff --git a/src/applications/harbormaster/storage/HarbormasterBuildMessage.php b/src/applications/harbormaster/storage/HarbormasterBuildMessage.php
--- a/src/applications/harbormaster/storage/HarbormasterBuildMessage.php
+++ b/src/applications/harbormaster/storage/HarbormasterBuildMessage.php
@@ -10,7 +10,7 @@
implements PhabricatorPolicyInterface {
protected $authorPHID;
- protected $buildTargetPHID;
+ protected $receiverPHID;
protected $type;
protected $isConsumed;
@@ -34,29 +34,17 @@
'isConsumed' => 'bool',
),
self::CONFIG_KEY_SCHEMA => array(
- 'key_buildtarget' => array(
- 'columns' => array('buildTargetPHID'),
+ 'key_receiver' => array(
+ 'columns' => array('receiverPHID'),
),
),
) + parent::getConfiguration();
}
- public function getReceiverPHID() {
- return $this->getBuildTargetPHID();
- }
-
- public function setReceiverPHID($phid) {
- return $this->setBuildTargetPHID($phid);
- }
-
public function getReceiver() {
return $this->assertAttached($this->receiver);
}
- public function getBuildTarget() {
- return $this->getReceiver();
- }
-
public function attachReceiver($receiver) {
$this->receiver = $receiver;
return $this;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 15, 11:13 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7704384
Default Alt Text
D19063.id.diff (2 KB)
Attached To
Mode
D19063: Rename HarbormasterBuildMessage "buildTargetPHID" to "receiverPHID"
Attached
Detach File
Event Timeline
Log In to Comment