Commit 22530468 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Kill lastlogin table since that info is now kept in user_stats.

parent 179d5086
......@@ -463,16 +463,6 @@ CREATE TABLE last_reservation (
PRIMARY KEY (node_id,pid)
) TYPE=MyISAM;
--
-- Table structure for table 'lastlogin'
--
CREATE TABLE lastlogin (
uid varchar(10) NOT NULL default '',
time datetime default NULL,
PRIMARY KEY (uid)
) TYPE=MyISAM;
--
-- Table structure for table 'linkdelays'
--
......
......@@ -383,3 +383,8 @@ last_net_act,last_cpu_act,last_ext_act);
is over 1MB.
1.137: Minor file formatting changes, no DB schema changes
1.138: Drop the lastlogin table since that info is now kept in
user_stats.
drop table lastlogin;
......@@ -93,15 +93,15 @@ else {
$query_result =
DBQueryFatal("SELECT u.*, ".
" IF(ll.time, ".
" TO_DAYS(CURDATE()) - TO_DAYS(ll.time), ".
" IF(ll.weblogin_last, ".
" TO_DAYS(CURDATE()) - TO_DAYS(ll.weblogin_last), ".
" TO_DAYS(CURDATE()) - TO_DAYS(u.usr_created)) ".
" as webidle, ".
" TO_DAYS(CURDATE()) - TO_DAYS(ull.date) as usersidle ".
"FROM users as u ".
"$clause ".
"left join userslastlogin as ull on u.uid=ull.uid ".
"left join lastlogin as ll on u.uid=ll.uid ".
"left join user_stats as ll on u.uid=ll.uid ".
"$where ".
"order by $order");
......
......@@ -374,12 +374,6 @@ function DOLOGIN($uid, $password, $adminmode) {
"VALUES ('$uid', '$hashkey', '$timeout')");
}
#
# Create a last login record. This is now obsolete.
#
DBQueryFatal("REPLACE into lastlogin (uid, time) ".
" VALUES ('$uid', NOW())");
#
# Usage stats.
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment