mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
Added a new column to user_students and user_teachers called "timeaccess"
for recording the last access to the COURSE. This is updated at the same time as add_to_log and is now used instead of user->lastaccess when course user listings are required. This means course listings now show what you expect and open up the way for a "current users" listing and instant messaging etc ...
This commit is contained in:
parent
ecd25101f5
commit
4d744a220a
8 changed files with 62 additions and 17 deletions
|
@ -167,7 +167,8 @@ CREATE TABLE prefix_user_students (
|
|||
course integer NOT NULL default '0',
|
||||
timestart integer NOT NULL default '0',
|
||||
timeend integer NOT NULL default '0',
|
||||
time integer NOT NULL default '0'
|
||||
time integer NOT NULL default '0',
|
||||
timeaccess integer NOT NULL default '0'
|
||||
);
|
||||
|
||||
CREATE INDEX prefix_user_students_courseuserid_idx ON prefix_user_students (course,userid);
|
||||
|
@ -179,7 +180,8 @@ CREATE TABLE prefix_user_teachers (
|
|||
authority integer NOT NULL default '3',
|
||||
role varchar(40) NOT NULL default '',
|
||||
editall integer NOT NULL default '1',
|
||||
timemodified integer NOT NULL default '0'
|
||||
timemodified integer NOT NULL default '0',
|
||||
timeaccess integer NOT NULL default '0'
|
||||
);
|
||||
|
||||
CREATE INDEX prefix_user_teachers_courseuserid_idx ON prefix_user_teachers (course,userid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue