@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 PhabricatorRepositoryRefPosition
4 extends PhabricatorRepositoryDAO {
5
6 protected $cursorID;
7 protected $commitIdentifier;
8 protected $isClosed = 0;
9
10 protected function getConfiguration() {
11 return array(
12 self::CONFIG_TIMESTAMPS => false,
13 self::CONFIG_COLUMN_SCHEMA => array(
14 'commitIdentifier' => 'text40',
15 'isClosed' => 'bool',
16 ),
17 self::CONFIG_KEY_SCHEMA => array(
18 'key_position' => array(
19 'columns' => array('cursorID', 'commitIdentifier'),
20 'unique' => true,
21 ),
22 ),
23 ) + parent::getConfiguration();
24 }
25
26}