Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/storage/PhabricatorUserSchemaSpec.php
Show All 20 Lines | $this->buildRawSchema( | ||||
id(new PhabricatorUser())->getApplicationName(), | id(new PhabricatorUser())->getApplicationName(), | ||||
PhabricatorUser::NAMETOKEN_TABLE, | PhabricatorUser::NAMETOKEN_TABLE, | ||||
array( | array( | ||||
'token' => 'text255', | 'token' => 'text255', | ||||
'userID' => 'id', | 'userID' => 'id', | ||||
), | ), | ||||
array( | array( | ||||
'token' => array( | 'token' => array( | ||||
'columns' => array('token'), | 'columns' => array('token(128)'), | ||||
epriestley: This isn't unique so just index the first part. | |||||
), | ), | ||||
'userID' => array( | 'userID' => array( | ||||
'columns' => array('userID'), | 'columns' => array('userID'), | ||||
), | ), | ||||
)); | )); | ||||
} | } | ||||
} | } |
This isn't unique so just index the first part.