@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 29 lines 709 B view raw
1<?php 2 3final class ConpherenceTransactionComment 4 extends PhabricatorApplicationTransactionComment { 5 6 protected $conpherencePHID; 7 8 public function getApplicationTransactionObject() { 9 return new ConpherenceTransaction(); 10 } 11 12 protected function getConfiguration() { 13 $config = parent::getConfiguration(); 14 15 $config[self::CONFIG_COLUMN_SCHEMA] = array( 16 'conpherencePHID' => 'phid?', 17 ) + $config[self::CONFIG_COLUMN_SCHEMA]; 18 19 $config[self::CONFIG_KEY_SCHEMA] = array( 20 'key_draft' => array( 21 'columns' => array('authorPHID', 'conpherencePHID', 'transactionPHID'), 22 'unique' => true, 23 ), 24 ) + $config[self::CONFIG_KEY_SCHEMA]; 25 26 return $config; 27 } 28 29}