Differential D10527 Diff 25342 src/applications/oauthserver/storage/PhabricatorOAuthServerAccessToken.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/oauthserver/storage/PhabricatorOAuthServerAccessToken.php
<?php | <?php | ||||
final class PhabricatorOAuthServerAccessToken | final class PhabricatorOAuthServerAccessToken | ||||
extends PhabricatorOAuthServerDAO { | extends PhabricatorOAuthServerDAO { | ||||
protected $id; | protected $id; | ||||
protected $token; | protected $token; | ||||
protected $userPHID; | protected $userPHID; | ||||
protected $clientPHID; | protected $clientPHID; | ||||
public function getConfiguration() { | |||||
return array( | |||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'token' => 'text32', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'token' => array( | |||||
'columns' => array('token'), | |||||
'unique' => true, | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | |||||
} | |||||
} | } |