mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-26 05:29:06 +01:00
Summary: Ref T6822. Test Plan: `grep` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: hach-que, Korvin, epriestley Maniphest Tasks: T6822 Differential Revision: https://secure.phabricator.com/D11370
28 lines
672 B
PHP
28 lines
672 B
PHP
<?php
|
|
|
|
final class PhabricatorTokenCount extends PhabricatorTokenDAO {
|
|
|
|
protected $objectPHID;
|
|
protected $tokenCount;
|
|
|
|
protected function getConfiguration() {
|
|
return array(
|
|
self::CONFIG_IDS => self::IDS_MANUAL,
|
|
self::CONFIG_TIMESTAMPS => false,
|
|
self::CONFIG_COLUMN_SCHEMA => array(
|
|
'id' => 'auto',
|
|
'tokenCount' => 'uint32',
|
|
),
|
|
self::CONFIG_KEY_SCHEMA => array(
|
|
'key_objectPHID' => array(
|
|
'columns' => array('objectPHID'),
|
|
'unique' => true,
|
|
),
|
|
'key_count' => array(
|
|
'columns' => array('tokenCount'),
|
|
),
|
|
),
|
|
) + parent::getConfiguration();
|
|
}
|
|
|
|
}
|