1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 16:22:43 +01:00

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
This commit is contained in:
Afaque Hussain 2013-02-14 12:27:08 -08:00 committed by epriestley
parent 9baada1571
commit 73991bb262
4 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,2 @@
ALTER TABLE `{$NAMESPACE}_chatlog`.`chatlog_event`
ADD `channelID` INT UNSIGNED NOT NULL;

View file

@ -42,6 +42,7 @@ final class ConduitAPI_chatlog_record_Method
foreach ($logs as $log) {
$obj = clone $template;
$obj->setChannel(idx($log, 'channel'));
$obj->setChannelID(0);
$obj->setType(idx($log, 'type'));
$obj->setAuthor(idx($log, 'author'));
$obj->setEpoch(idx($log, 'epoch'));

View file

@ -5,6 +5,7 @@ final class PhabricatorChatLogEvent
implements PhabricatorPolicyInterface {
protected $channel;
protected $channelID;
protected $epoch;
protected $author;
protected $type;

View file

@ -1113,6 +1113,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
'type' => 'sql',
'name' => $this->getPatchPath('20130214.chatlogchannel.sql'),
),
'20130214.chatlogchannelid.sql' => array(
'type' => 'sql',
'name' => $this->getPatchPath('20130214.chatlogchannelid.sql'),
),
);
}