timestamps for avatar
darcs-hash:20080518194653-84dde-33205b1f2f6297006d63aec41fa91a8bcffda1ef.gz
This commit is contained in:
parent
6396504aa6
commit
88483fe3b8
@ -124,6 +124,7 @@ class AvatarAction extends SettingsAction {
|
||||
$avatar->original = true;
|
||||
$avatar->url = common_avatar_url($filename);
|
||||
$avatar->created = DB_DataObject_Cast::dateTime(); # current time
|
||||
|
||||
foreach (array(AVATAR_PROFILE_SIZE, AVATAR_STREAM_SIZE, AVATAR_MINI_SIZE) as $size) {
|
||||
$scaled[] = $this->scale_avatar($user, $avatar, $size);
|
||||
}
|
||||
|
@ -22,6 +22,8 @@ create table avatar (
|
||||
mediatype varchar(32) not null comment 'file type',
|
||||
filename varchar(255) null comment 'local filename, if local',
|
||||
url varchar(255) unique key comment 'avatar location',
|
||||
created datetime not null comment 'date this record was created',
|
||||
modified timestamp comment 'date this record was modified',
|
||||
|
||||
constraint primary key (profile_id, width, height),
|
||||
index avatar_profile_id_idx (profile_id)
|
||||
|
Loading…
Reference in New Issue
Block a user