Differential D10583 Diff 25460 src/applications/harbormaster/storage/build/HarbormasterBuildArtifact.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/build/HarbormasterBuildArtifact.php
Show All 20 Lines | return id(new HarbormasterBuildArtifact()) | ||||
->setBuildTargetPHID($build_target->getPHID()); | ->setBuildTargetPHID($build_target->getPHID()); | ||||
} | } | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
'artifactData' => self::SERIALIZATION_JSON, | 'artifactData' => self::SERIALIZATION_JSON, | ||||
), | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'artifactType' => 'text32', | |||||
'artifactIndex' => 'bytes12', | |||||
'artifactKey' => 'text255', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_artifact' => array( | |||||
'columns' => array('artifactType', 'artifactIndex'), | |||||
'unique' => true, | |||||
), | |||||
'key_garbagecollect' => array( | |||||
'columns' => array('artifactType', 'dateCreated'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function attachBuildTarget(HarbormasterBuildTarget $build_target) { | public function attachBuildTarget(HarbormasterBuildTarget $build_target) { | ||||
$this->buildTarget = $build_target; | $this->buildTarget = $build_target; | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |