@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
3/**
4 * This is just a test table that unit tests can use if they need to test
5 * generic database operations. It won't change and break tests and stuff, and
6 * mistakes in test construction or isolation won't impact the application in
7 * any way.
8 */
9final class HarbormasterScratchTable extends HarbormasterDAO {
10
11 protected $data;
12 protected $bigData;
13 protected $nonmutableData;
14
15 protected function getConfiguration() {
16 return array(
17 self::CONFIG_COLUMN_SCHEMA => array(
18 'data' => 'text64',
19 'bigData' => 'text?',
20 'nonmutableData' => 'text64?',
21 ),
22 self::CONFIG_KEY_SCHEMA => array(
23 'data' => array(
24 'columns' => array('data'),
25 ),
26 ),
27 self::CONFIG_NO_MUTATE => array(
28 'nonmutableData',
29 ),
30 ) + parent::getConfiguration();
31 }
32
33}