Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/build/HarbormasterBuildLog.php
Show All 24 Lines | return id(new HarbormasterBuildLog()) | ||||
->setBuildTargetPHID($build_target->getPHID()) | ->setBuildTargetPHID($build_target->getPHID()) | ||||
->setDuration(null) | ->setDuration(null) | ||||
->setLive(0); | ->setLive(0); | ||||
} | } | ||||
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( | |||||
'logSource' => 'text255', | |||||
'logType' => 'text255', | |||||
'duration' => 'uint32', | |||||
'live' => 'bool', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_buildtarget' => array( | |||||
'columns' => array('buildTargetPHID'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
HarbormasterBuildLogPHIDType::TYPECONST); | HarbormasterBuildLogPHIDType::TYPECONST); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |