@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 PhabricatorProjectSlug extends PhabricatorProjectDAO {
4
5 protected $slug;
6 protected $projectPHID;
7
8 protected function getConfiguration() {
9 return array(
10 self::CONFIG_COLUMN_SCHEMA => array(
11 'slug' => 'text128',
12 ),
13 self::CONFIG_KEY_SCHEMA => array(
14 'key_slug' => array(
15 'columns' => array('slug'),
16 'unique' => true,
17 ),
18 'key_projectPHID' => array(
19 'columns' => array('projectPHID'),
20 ),
21 ),
22 ) + parent::getConfiguration();
23 }
24
25}