Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95984648
HarbormasterSchemaSpec.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Dec 21, 08:25
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Dec 23, 08:25 (2 d)
Engine
blob
Format
Raw Data
Handle
23094930
Attached To
rPH Phabricator
HarbormasterSchemaSpec.php
View Options
<?php
final
class
HarbormasterSchemaSpec
extends
PhabricatorConfigSchemaSpec
{
public
function
buildSchemata
()
{
$this
->
buildEdgeSchemata
(
new
HarbormasterBuildable
());
// NOTE: This table is not used by any Harbormaster objects, but is used
// by unit tests.
$this
->
buildRawSchema
(
id
(
new
HarbormasterObject
())->
getApplicationName
(),
PhabricatorLiskDAO
::
COUNTER_TABLE_NAME
,
array
(
'counterName'
=>
'text32'
,
'counterValue'
=>
'id64'
,
),
array
(
'PRIMARY'
=>
array
(
'columns'
=>
array
(
'counterName'
),
'unique'
=>
true
,
),
));
$this
->
buildRawSchema
(
id
(
new
HarbormasterBuildable
())->
getApplicationName
(),
'harbormaster_buildlogchunk'
,
array
(
'id'
=>
'auto'
,
'logID'
=>
'id'
,
'encoding'
=>
'text32'
,
// T6203/NULLABILITY
// Both the type and nullability of this column are crazily wrong.
'size'
=>
'uint32?'
,
'chunk'
=>
'bytes'
,
),
array
(
'PRIMARY'
=>
array
(
'columns'
=>
array
(
'id'
),
'unique'
=>
true
,
),
'key_log'
=>
array
(
'columns'
=>
array
(
'logID'
),
),
));
}
}
Event Timeline
Log In to Comment