2011-01-24 09:00:29 -08:00
|
|
|
<?php
|
|
|
|
|
2014-07-10 08:12:48 +10:00
|
|
|
final class PhabricatorConduitMethodCallLog
|
|
|
|
extends PhabricatorConduitDAO
|
2013-07-01 12:37:34 -07:00
|
|
|
implements PhabricatorPolicyInterface {
|
2011-01-24 09:00:29 -08:00
|
|
|
|
2013-07-01 12:37:34 -07:00
|
|
|
protected $callerPHID;
|
2011-01-24 09:00:29 -08:00
|
|
|
protected $connectionID;
|
|
|
|
protected $method;
|
|
|
|
protected $error;
|
|
|
|
protected $duration;
|
|
|
|
|
2014-09-18 11:15:29 -07:00
|
|
|
public function getConfiguration() {
|
|
|
|
return array(
|
|
|
|
self::CONFIG_COLUMN_SCHEMA => array(
|
|
|
|
'id' => 'id64',
|
|
|
|
'connectionID' => 'id64?',
|
Fix almost all remaining schemata issues
Summary:
Ref T1191. This fixes nearly every remaining blocker for utf8mb4 -- primarily, overlong keys.
Remaining issue is https://secure.phabricator.com/T1191#77467
Test Plan: I'll annotate inline.
Reviewers: btrahan
Reviewed By: btrahan
Subscribers: epriestley, hach-que
Maniphest Tasks: T6099, T6129, T6133, T6134, T6150, T6148, T6147, T6146, T6105, T1191
Differential Revision: https://secure.phabricator.com/D10601
2014-10-01 08:18:36 -07:00
|
|
|
'method' => 'text64',
|
2014-09-18 11:15:29 -07:00
|
|
|
'error' => 'text255',
|
|
|
|
'duration' => 'uint64',
|
|
|
|
'callerPHID' => 'phid?',
|
|
|
|
),
|
2014-10-01 07:53:50 -07:00
|
|
|
self::CONFIG_KEY_SCHEMA => array(
|
|
|
|
'key_date' => array(
|
|
|
|
'columns' => array('dateCreated'),
|
|
|
|
),
|
|
|
|
'key_method' => array(
|
|
|
|
'columns' => array('method'),
|
|
|
|
),
|
|
|
|
'key_callermethod' => array(
|
|
|
|
'columns' => array('callerPHID', 'method'),
|
|
|
|
),
|
|
|
|
),
|
2014-09-18 11:15:29 -07:00
|
|
|
) + parent::getConfiguration();
|
|
|
|
}
|
|
|
|
|
2013-07-01 12:37:34 -07:00
|
|
|
|
|
|
|
/* -( PhabricatorPolicyInterface )----------------------------------------- */
|
|
|
|
|
|
|
|
|
|
|
|
public function getCapabilities() {
|
|
|
|
return array(
|
|
|
|
PhabricatorPolicyCapability::CAN_VIEW,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPolicy($capability) {
|
|
|
|
return PhabricatorPolicies::POLICY_USER;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function hasAutomaticCapability($capability, PhabricatorUser $viewer) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2013-09-27 08:43:41 -07:00
|
|
|
public function describeAutomaticCapability($capability) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2011-01-24 09:00:29 -08:00
|
|
|
}
|