Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/storage/PhabricatorPaste.php
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | final class PhabricatorPaste extends PhabricatorPasteDAO | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'title' => 'text255', | 'title' => 'text255', | ||||
'language' => 'text64', | 'language' => 'text64', | ||||
'mailKey' => 'bytes20', | 'mailKey' => 'bytes20', | ||||
'parentPHID' => 'phid?', | 'parentPHID' => 'phid?', | ||||
// T6203/NULLABILITY | |||||
// Pastes should always have a view policy. | |||||
'viewPolicy' => 'policy?', | |||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'parentPHID' => array( | 'parentPHID' => array( | ||||
'columns' => array('parentPHID'), | 'columns' => array('parentPHID'), | ||||
), | ), | ||||
'authorPHID' => array( | 'authorPHID' => array( | ||||
'columns' => array('authorPHID'), | 'columns' => array('authorPHID'), | ||||
), | ), | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |