Changeset View
Changeset View
Standalone View
Standalone View
src/applications/owners/storage/PhabricatorOwnersPath.php
| Show All 20 Lines | return array( | ||||
| 'pathIndex' => 'bytes12', | 'pathIndex' => 'bytes12', | ||||
| 'excluded' => 'bool', | 'excluded' => 'bool', | ||||
| ), | ), | ||||
| self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
| 'key_path' => array( | 'key_path' => array( | ||||
| 'columns' => array('packageID', 'repositoryPHID', 'pathIndex'), | 'columns' => array('packageID', 'repositoryPHID', 'pathIndex'), | ||||
| 'unique' => true, | 'unique' => true, | ||||
| ), | ), | ||||
| 'key_repository' => array( | |||||
| 'columns' => array('repositoryPHID', 'pathIndex'), | |||||
| ), | |||||
| ), | ), | ||||
| ) + 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 86 Lines • Show Last 20 Lines | |||||