Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/fact/storage/PhabricatorFactKeyDimension.php
12256 views
1
<?php
2
3
final class PhabricatorFactKeyDimension
4
extends PhabricatorFactDimension {
5
6
protected $factKey;
7
8
protected function getConfiguration() {
9
return array(
10
self::CONFIG_TIMESTAMPS => false,
11
self::CONFIG_COLUMN_SCHEMA => array(
12
'factKey' => 'text64',
13
),
14
self::CONFIG_KEY_SCHEMA => array(
15
'key_factkey' => array(
16
'columns' => array('factKey'),
17
'unique' => true,
18
),
19
),
20
) + parent::getConfiguration();
21
}
22
23
protected function getDimensionColumnName() {
24
return 'factKey';
25
}
26
27
}
28
29