Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/storage/PhabricatorUserSSHKey.php
<?php | <?php | ||||
final class PhabricatorUserSSHKey extends PhabricatorUserDAO { | final class PhabricatorUserSSHKey extends PhabricatorUserDAO { | ||||
protected $userPHID; | protected $userPHID; | ||||
protected $name; | protected $name; | ||||
protected $keyType; | protected $keyType; | ||||
protected $keyBody; | protected $keyBody; | ||||
protected $keyHash; | protected $keyHash; | ||||
protected $keyComment; | protected $keyComment; | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'name' => 'text255', | |||||
'keyType' => 'text255', | |||||
'keyBody' => 'text', | |||||
'keyHash' => 'bytes32', | 'keyHash' => 'bytes32', | ||||
'keyComment' => 'text255?', | 'keyComment' => 'text255?', | ||||
// T6203/NULLABILITY | |||||
// These seem like they should not be nullable. | |||||
'name' => 'text255?', | |||||
'keyType' => 'text255?', | |||||
'keyBody' => 'text?', | |||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'userPHID' => array( | 'userPHID' => array( | ||||
'columns' => array('userPHID'), | 'columns' => array('userPHID'), | ||||
), | ), | ||||
'keyHash' => array( | 'keyHash' => array( | ||||
'columns' => array('keyHash'), | 'columns' => array('keyHash'), | ||||
'unique' => true, | 'unique' => true, | ||||
Show All 15 Lines |