@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhabricatorOAuthServerAccessToken
4 extends PhabricatorOAuthServerDAO {
5
6 protected $id;
7 protected $token;
8 protected $userPHID;
9 protected $clientPHID;
10
11 protected function getConfiguration() {
12 return array(
13 self::CONFIG_COLUMN_SCHEMA => array(
14 'token' => 'text32',
15 ),
16 self::CONFIG_KEY_SCHEMA => array(
17 'token' => array(
18 'columns' => array('token'),
19 'unique' => true,
20 ),
21 ),
22 ) + parent::getConfiguration();
23 }
24
25}