From 38c7d0766195d9d84fcd81bc23b9c71bff5bea6d Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 5 Aug 2006 05:24:47 +0000 Subject: Bug 305941: Remove profiles.refreshed_when and groups.last_changed - Patch by Frédéric Buclin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/User.pm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'Bugzilla/User.pm') diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 924cb0511..c83732ecc 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -707,9 +707,6 @@ sub derive_regexp_groups { my $sth; - # avoid races, we are only up to date as of the BEGINNING of this process - my $time = $dbh->selectrow_array("SELECT NOW()"); - # add derived records for any matching regexps $sth = $dbh->prepare("SELECT id, userregexp, user_group_map.group_id @@ -735,9 +732,6 @@ sub derive_regexp_groups { $group_delete->execute($id, $group, GRANT_REGEXP) if $present; } } - - $dbh->do(q{UPDATE profiles SET refreshed_when = ? WHERE userid = ?}, - undef, ($time, $id)); } sub product_responsibilities { @@ -1363,8 +1357,8 @@ sub insert_new_user { # Insert the new user record into the database. $dbh->do("INSERT INTO profiles (login_name, realname, cryptpassword, disabledtext, - refreshed_when, disable_mail) - VALUES (?, ?, ?, ?, '1901-01-01 00:00:00', ?)", + disable_mail) + VALUES (?, ?, ?, ?, ?)", undef, ($username, $realname, $cryptpassword, $disabledtext, $disable_mail)); -- cgit v1.2.3-24-g4f1b