@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
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Added channel ID to events

Summary: Added a column channelID column to phabricator_chatlog.chatlog_event

Test Plan: Checked through mysql to see if table is updated

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4956

authored by

Afaque Hussain and committed by
epriestley
73991bb2 9baada15

+8
+2
resources/sql/patches/20130214.chatlogchannelid.sql
··· 1 + ALTER TABLE `{$NAMESPACE}_chatlog`.`chatlog_event` 2 + ADD `channelID` INT UNSIGNED NOT NULL;
+1
src/applications/chatlog/conduit/ConduitAPI_chatlog_record_Method.php
··· 42 42 foreach ($logs as $log) { 43 43 $obj = clone $template; 44 44 $obj->setChannel(idx($log, 'channel')); 45 + $obj->setChannelID(0); 45 46 $obj->setType(idx($log, 'type')); 46 47 $obj->setAuthor(idx($log, 'author')); 47 48 $obj->setEpoch(idx($log, 'epoch'));
+1
src/applications/chatlog/storage/PhabricatorChatLogEvent.php
··· 5 5 implements PhabricatorPolicyInterface { 6 6 7 7 protected $channel; 8 + protected $channelID; 8 9 protected $epoch; 9 10 protected $author; 10 11 protected $type;
+4
src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
··· 1113 1113 'type' => 'sql', 1114 1114 'name' => $this->getPatchPath('20130214.chatlogchannel.sql'), 1115 1115 ), 1116 + '20130214.chatlogchannelid.sql' => array( 1117 + 'type' => 'sql', 1118 + 'name' => $this->getPatchPath('20130214.chatlogchannelid.sql'), 1119 + ), 1116 1120 ); 1117 1121 } 1118 1122