Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fund/storage/FundBacker.php
Show All 26 Lines | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
'properties' => self::SERIALIZATION_JSON, | 'properties' => self::SERIALIZATION_JSON, | ||||
), | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'status' => 'text32', | 'status' => 'text32', | ||||
'amountInCents' => 'uint32', | 'amountInCents' => 'uint32', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_initiative' => array( | |||||
'columns' => array('initiativePHID'), | |||||
), | |||||
'key_backer' => array( | |||||
'columns' => array('backerPHID'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID(FundBackerPHIDType::TYPECONST); | return PhabricatorPHID::generateNewPHID(FundBackerPHIDType::TYPECONST); | ||||
} | } | ||||
protected function didReadData() { | protected function didReadData() { | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |