Skip to content

Commit f2e013c

Browse files
author
Chad Little
committedMar 4, 2017
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
1 parent f095a81 commit f2e013c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ALTER TABLE {$NAMESPACE}_user.user
2+
ADD defaultProfileImagePHID VARBINARY(64);
3+
4+
ALTER TABLE {$NAMESPACE}_user.user
5+
ADD defaultProfileImageVersion VARCHAR(64) COLLATE {$COLLATE_TEXT};

‎src/applications/people/storage/PhabricatorUser.php

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ final class PhabricatorUser
3030
protected $passwordSalt;
3131
protected $passwordHash;
3232
protected $profileImagePHID;
33+
protected $defaultProfileImagePHID;
34+
protected $defaultProfileImageVersion;
3335
protected $availabilityCache;
3436
protected $availabilityCacheTTL;
3537

@@ -227,6 +229,8 @@ protected function getConfiguration() {
227229
'isEnrolledInMultiFactor' => 'bool',
228230
'availabilityCache' => 'text255?',
229231
'availabilityCacheTTL' => 'uint32?',
232+
'defaultProfileImagePHID' => 'phid?',
233+
'defaultProfileImageVersion' => 'text64?',
230234
),
231235
self::CONFIG_KEY_SCHEMA => array(
232236
'key_phid' => null,

0 commit comments

Comments
 (0)
Failed to load comments.