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:
parent
9baada1571
commit
73991bb262
4 changed files with 8 additions and 0 deletions
2
resources/sql/patches/20130214.chatlogchannelid.sql
Normal file
2
resources/sql/patches/20130214.chatlogchannelid.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE `{$NAMESPACE}_chatlog`.`chatlog_event`
|
||||
ADD `channelID` INT UNSIGNED NOT NULL;
|
|
@ -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'));
|
||||
|
|
|
@ -5,6 +5,7 @@ final class PhabricatorChatLogEvent
|
|||
implements PhabricatorPolicyInterface {
|
||||
|
||||
protected $channel;
|
||||
protected $channelID;
|
||||
protected $epoch;
|
||||
protected $author;
|
||||
protected $type;
|
||||
|
|
|
@ -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'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue