Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F124702563
DifferentialSchemaSpec.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
Mon, Aug 4, 02:42
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Aug 6, 02:42 (2 d)
Engine
blob
Format
Raw Data
Handle
27892537
Attached To
rPH Phabricator
DifferentialSchemaSpec.php
View Options
<?php
final
class
DifferentialSchemaSpec
extends
PhabricatorConfigSchemaSpec
{
public
function
buildSchemata
()
{
$this
->
buildEdgeSchemata
(
new
DifferentialRevision
());
$this
->
buildRawSchema
(
id
(
new
DifferentialRevision
())->
getApplicationName
(),
DifferentialChangeset
::
TABLE_CACHE
,
array
(
'id'
=>
'id'
,
'cache'
=>
'bytes'
,
'dateCreated'
=>
'epoch'
,
),
array
(
'PRIMARY'
=>
array
(
'columns'
=>
array
(
'id'
),
'unique'
=>
true
,
),
'dateCreated'
=>
array
(
'columns'
=>
array
(
'dateCreated'
),
),
));
$this
->
buildRawSchema
(
id
(
new
DifferentialRevision
())->
getApplicationName
(),
DifferentialRevision
::
TABLE_COMMIT
,
array
(
'revisionID'
=>
'id'
,
'commitPHID'
=>
'phid'
,
),
array
(
'PRIMARY'
=>
array
(
'columns'
=>
array
(
'revisionID'
,
'commitPHID'
),
'unique'
=>
true
,
),
'commitPHID'
=>
array
(
'columns'
=>
array
(
'commitPHID'
),
'unique'
=>
true
,
),
));
$this
->
buildRawSchema
(
id
(
new
DifferentialRevision
())->
getApplicationName
(),
ArcanistDifferentialRevisionHash
::
TABLE_NAME
,
array
(
'revisionID'
=>
'id'
,
'type'
=>
'bytes4'
,
'hash'
=>
'bytes40'
,
),
array
(
'type'
=>
array
(
'columns'
=>
array
(
'type'
,
'hash'
),
),
'revisionID'
=>
array
(
'columns'
=>
array
(
'revisionID'
),
),
));
}
}
Event Timeline
Log In to Comment