Differential D10583 Diff 25460 src/applications/harbormaster/storage/build/HarbormasterBuildTarget.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/build/HarbormasterBuildTarget.php
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | final class HarbormasterBuildTarget extends HarbormasterDAO | ||||
} | } | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
'details' => self::SERIALIZATION_JSON, | 'details' => self::SERIALIZATION_JSON, | ||||
'variables' => self::SERIALIZATION_JSON, | 'variables' => self::SERIALIZATION_JSON, | ||||
) | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'className' => 'text255', | |||||
'targetStatus' => 'text64', | |||||
'name' => 'text255', | |||||
'dateStarted' => 'epoch?', | |||||
'dateCompleted' => 'epoch?', | |||||
'buildGeneration' => 'uint32', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_build' => array( | |||||
'columns' => array('buildPHID', 'buildStepPHID'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
HarbormasterBuildTargetPHIDType::TYPECONST); | HarbormasterBuildTargetPHIDType::TYPECONST); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines |