-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change profile avatar title from fullname to username (#53)
- Loading branch information
1 parent
b63f2e8
commit b459530
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Upgrade | ||
|
||
## 0.2.0 | ||
|
||
### Avatar title will use username instead of fullname | ||
|
||
If you want this also for old uploaded profile images the username as | ||
media title run the following sql statement. Attention this will | ||
overwrite all manual changed media titles of contact images. | ||
|
||
```sql | ||
UPDATE me_file_version_meta AS fvm | ||
INNER JOIN me_file_versions AS fv ON | ||
fvm.idFileVersions = fv.id | ||
INNER JOIN me_files AS f ON | ||
fv.idFiles = f.id | ||
INNER JOIN me_media AS m ON | ||
f.idMedia = m.id | ||
INNER JOIN me_collections AS co ON | ||
m.idCollections = co.id | ||
INNER JOIN co_contacts AS c ON | ||
m.id = c.avatar | ||
INNER JOIN se_users AS u ON | ||
u.idContacts = c.id | ||
SET fvm.title = u.username | ||
WHERE co.collection_key = 'sulu_contact.contact' AND u.id IS NOT NULL; | ||
``` | ||
|