Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15434330
D17459.id41987.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D17459.id41987.diff
View Options
diff --git a/resources/sql/autopatches/20170303.people.01.avatar.sql b/resources/sql/autopatches/20170303.people.01.avatar.sql
new file mode 100644
--- /dev/null
+++ b/resources/sql/autopatches/20170303.people.01.avatar.sql
@@ -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} NOT NULL;
diff --git a/src/applications/people/storage/PhabricatorUser.php b/src/applications/people/storage/PhabricatorUser.php
--- a/src/applications/people/storage/PhabricatorUser.php
+++ b/src/applications/people/storage/PhabricatorUser.php
@@ -30,6 +30,8 @@
protected $passwordSalt;
protected $passwordHash;
protected $profileImagePHID;
+ protected $defaultProfileImagePHID;
+ protected $defaultProfileImageVersion;
protected $availabilityCache;
protected $availabilityCacheTTL;
@@ -227,6 +229,8 @@
'isEnrolledInMultiFactor' => 'bool',
'availabilityCache' => 'text255?',
'availabilityCacheTTL' => 'uint32?',
+ 'defaultProfileImagePHID' => 'phid?',
+ 'defaultProfileImageVersion' => 'text64',
),
self::CONFIG_KEY_SCHEMA => array(
'key_phid' => null,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mar 26 2025, 3:02 AM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7704036
Default Alt Text
D17459.id41987.diff (1 KB)
Attached To
Mode
D17459: Prep user table for default images
Attached
Detach File
Event Timeline
Log In to Comment