Changeset View
Changeset View
Standalone View
Standalone View
src/applications/slowvote/storage/PhabricatorSlowvotePoll.php
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | return array( | ||||
'method' => 'uint32', | 'method' => 'uint32', | ||||
'description' => 'text', | 'description' => 'text', | ||||
'isClosed' => 'bool', | 'isClosed' => 'bool', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'key_phid' => null, | 'key_phid' => null, | ||||
'phid' => array( | 'phid' => array( | ||||
'columns' => array('phid'), | 'columns' => array('phid'), | ||||
'unique' => true, | |||||
), | ), | ||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
PhabricatorSlowvotePollPHIDType::TYPECONST); | PhabricatorSlowvotePollPHIDType::TYPECONST); | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |