Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/storage/PhabricatorFileTransactionComment.php
Show All 11 Lines | public function shouldUseMarkupCache($field) { | ||||
return ($this->getTransactionPHID() != null); | return ($this->getTransactionPHID() != null); | ||||
} | } | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
$config = parent::getConfiguration(); | $config = parent::getConfiguration(); | ||||
$config[self::CONFIG_KEY_SCHEMA] = array( | $config[self::CONFIG_KEY_SCHEMA] = array( | ||||
'key_draft' => array( | 'key_draft' => array( | ||||
'columns' => array('authorPHID', 'transactionPHID'), | 'columns' => array('authorPHID', 'transactionPHID'), | ||||
'unique' => true, | |||||
), | ), | ||||
) + $config[self::CONFIG_KEY_SCHEMA]; | ) + $config[self::CONFIG_KEY_SCHEMA]; | ||||
return $config; | return $config; | ||||
} | } | ||||
} | } |