Differential D10601 Diff 25473 src/applications/mailinglists/storage/PhabricatorMetaMTAMailingList.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/mailinglists/storage/PhabricatorMetaMTAMailingList.php
Show All 12 Lines | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
PhabricatorMailingListListPHIDType::TYPECONST); | PhabricatorMailingListListPHIDType::TYPECONST); | ||||
} | } | ||||
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( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'name' => 'text255', | 'name' => 'text128', | ||||
'email' => 'text255', | 'email' => 'text128', | ||||
'uri' => 'text255?', | 'uri' => 'text255?', | ||||
epriestley: It seems reasonable that no mailing list will have a name or address longer than 128 characters. | |||||
), | ), | ||||
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, | 'unique' => true, | ||||
), | ), | ||||
'email' => array( | 'email' => array( | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |
It seems reasonable that no mailing list will have a name or address longer than 128 characters.