Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F111595684
HeraldSchemaSpec.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, May 3, 15:39
Size
893 B
Mime Type
text/x-php
Expires
Mon, May 5, 15:39 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25777411
Attached To
rPH Phabricator
HeraldSchemaSpec.php
View Options
<?php
final
class
HeraldSchemaSpec
extends
PhabricatorConfigSchemaSpec
{
public
function
buildSchemata
()
{
$this
->
buildRawSchema
(
id
(
new
HeraldRule
())->
getApplicationName
(),
HeraldRule
::
TABLE_RULE_APPLIED
,
array
(
'ruleID'
=>
'id'
,
'phid'
=>
'phid'
,
),
array
(
'PRIMARY'
=>
array
(
'columns'
=>
array
(
'ruleID'
,
'phid'
),
'unique'
=>
true
,
),
'phid'
=>
array
(
'columns'
=>
array
(
'phid'
),
),
));
$this
->
buildRawSchema
(
id
(
new
HeraldRule
())->
getApplicationName
(),
HeraldTranscript
::
TABLE_SAVED_HEADER
,
array
(
'phid'
=>
'phid'
,
'header'
=>
'text'
,
),
array
(
'PRIMARY'
=>
array
(
'columns'
=>
array
(
'phid'
),
'unique'
=>
true
,
),
));
$this
->
buildEdgeSchemata
(
new
HeraldRule
());
}
}
Event Timeline
Log In to Comment