1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 19:22:42 +01:00

Prep user table for default images

Summary: Ref T10319. Adds in database columns for upcoming default generated avatar support.

Test Plan: Ran storage upgrade, log into local site to verify it didn't blow up.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T10319

Differential Revision: https://secure.phabricator.com/D17459
This commit is contained in:
Chad Little 2017-03-03 21:45:24 -08:00
parent f095a81b00
commit f2e013c2e9
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,5 @@
ALTER TABLE {$NAMESPACE}_user.user
ADD defaultProfileImagePHID VARBINARY(64);
ALTER TABLE {$NAMESPACE}_user.user
ADD defaultProfileImageVersion VARCHAR(64) COLLATE {$COLLATE_TEXT};

View file

@ -30,6 +30,8 @@ final class PhabricatorUser
protected $passwordSalt; protected $passwordSalt;
protected $passwordHash; protected $passwordHash;
protected $profileImagePHID; protected $profileImagePHID;
protected $defaultProfileImagePHID;
protected $defaultProfileImageVersion;
protected $availabilityCache; protected $availabilityCache;
protected $availabilityCacheTTL; protected $availabilityCacheTTL;
@ -227,6 +229,8 @@ final class PhabricatorUser
'isEnrolledInMultiFactor' => 'bool', 'isEnrolledInMultiFactor' => 'bool',
'availabilityCache' => 'text255?', 'availabilityCache' => 'text255?',
'availabilityCacheTTL' => 'uint32?', 'availabilityCacheTTL' => 'uint32?',
'defaultProfileImagePHID' => 'phid?',
'defaultProfileImageVersion' => 'text64?',
), ),
self::CONFIG_KEY_SCHEMA => array( self::CONFIG_KEY_SCHEMA => array(
'key_phid' => null, 'key_phid' => null,