Differential D10590 Diff 25464 src/applications/conpherence/storage/ConpherenceTransactionComment.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/storage/ConpherenceTransactionComment.php
<?php | <?php | ||||
final class ConpherenceTransactionComment | final class ConpherenceTransactionComment | ||||
extends PhabricatorApplicationTransactionComment { | extends PhabricatorApplicationTransactionComment { | ||||
protected $conpherencePHID; | protected $conpherencePHID; | ||||
public function getApplicationTransactionObject() { | public function getApplicationTransactionObject() { | ||||
return new ConpherenceTransaction(); | return new ConpherenceTransaction(); | ||||
} | } | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
$config = parent::getConfiguration(); | $config = parent::getConfiguration(); | ||||
$config[self::CONFIG_COLUMN_SCHEMA] = array( | $config[self::CONFIG_COLUMN_SCHEMA] = array( | ||||
'conpherencePHID' => 'phid?', | 'conpherencePHID' => 'phid?', | ||||
) + $config[self::CONFIG_COLUMN_SCHEMA]; | ) + $config[self::CONFIG_COLUMN_SCHEMA]; | ||||
$config[self::CONFIG_KEY_SCHEMA] = array( | |||||
'key_draft' => array( | |||||
'columns' => array('authorPHID', 'conpherencePHID', 'transactionPHID'), | |||||
'unique' => true, | |||||
), | |||||
) + $config[self::CONFIG_KEY_SCHEMA]; | |||||
return $config; | return $config; | ||||
} | } | ||||
} | } |