mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +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:
parent
f095a81b00
commit
f2e013c2e9
2 changed files with 9 additions and 0 deletions
5
resources/sql/autopatches/20170303.people.01.avatar.sql
Normal file
5
resources/sql/autopatches/20170303.people.01.avatar.sql
Normal 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};
|
|
@ -30,6 +30,8 @@ final class PhabricatorUser
|
|||
protected $passwordSalt;
|
||||
protected $passwordHash;
|
||||
protected $profileImagePHID;
|
||||
protected $defaultProfileImagePHID;
|
||||
protected $defaultProfileImageVersion;
|
||||
protected $availabilityCache;
|
||||
protected $availabilityCacheTTL;
|
||||
|
||||
|
@ -227,6 +229,8 @@ final class PhabricatorUser
|
|||
'isEnrolledInMultiFactor' => 'bool',
|
||||
'availabilityCache' => 'text255?',
|
||||
'availabilityCacheTTL' => 'uint32?',
|
||||
'defaultProfileImagePHID' => 'phid?',
|
||||
'defaultProfileImageVersion' => 'text64?',
|
||||
),
|
||||
self::CONFIG_KEY_SCHEMA => array(
|
||||
'key_phid' => null,
|
||||
|
|
Loading…
Reference in a new issue