Changeset View
Changeset View
Standalone View
Standalone View
src/applications/owners/storage/PhabricatorOwnersPath.php
Show All 14 Lines | protected function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'path' => 'text255', | 'path' => 'text255', | ||||
'pathIndex' => 'bytes12', | 'pathIndex' => 'bytes12', | ||||
'excluded' => 'bool', | 'excluded' => 'bool', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'packageID' => array( | 'key_path' => array( | ||||
'columns' => array('packageID'), | 'columns' => array('packageID', 'repositoryPHID', 'pathIndex'), | ||||
'unique' => true, | |||||
), | ), | ||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public static function newFromRef(array $ref) { | public static function newFromRef(array $ref) { | ||||
$path = new PhabricatorOwnersPath(); | $path = new PhabricatorOwnersPath(); | ||||
$path->repositoryPHID = $ref['repositoryPHID']; | $path->repositoryPHID = $ref['repositoryPHID']; | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |