From b4acae726ffd299fccdaf59603347e730df0ec65 Mon Sep 17 00:00:00 2001 From: "bzrmirror%bugzilla.org" Date: Thu, 12 Jun 2014 21:30:48 +0000 Subject: [PATCH] Bug 1022923 - Add index to bug_user_last_visit.last_visit_ts r/a=glob git-svn-id: svn://10.0.0.236/trunk@265428 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/.gitrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/DB/Schema.pm | 3 ++- mozilla/webtools/bugzilla/Bugzilla/Install/DB.pm | 5 +++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 287340617a8..5eca2109db1 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -9053 \ No newline at end of file +9054 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/.gitrev b/mozilla/webtools/bugzilla/.gitrev index fc225561473..30b60d872d1 100644 --- a/mozilla/webtools/bugzilla/.gitrev +++ b/mozilla/webtools/bugzilla/.gitrev @@ -1 +1 @@ -6f1a5f0a2c0abfed6839d92d71cfdce9820037b0 \ No newline at end of file +eb13c383198a1c52a7858fdf3fee0248262bbaf0 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/DB/Schema.pm b/mozilla/webtools/bugzilla/Bugzilla/DB/Schema.pm index cf404f4cade..632ab639b83 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/DB/Schema.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/DB/Schema.pm @@ -1729,7 +1729,8 @@ use constant ABSTRACT_SCHEMA => { ], INDEXES => [ bug_user_last_visit_idx => {FIELDS => ['user_id', 'bug_id'], - TYPE => 'UNIQUE'} + TYPE => 'UNIQUE'}, + bug_user_last_visit_last_visit_ts_idx => ['last_visit_ts'], ], }, }; diff --git a/mozilla/webtools/bugzilla/Bugzilla/Install/DB.pm b/mozilla/webtools/bugzilla/Bugzilla/Install/DB.pm index d9bc494e0e0..9e197a90711 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Install/DB.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Install/DB.pm @@ -714,6 +714,11 @@ sub update_table_definitions { # 2013-08-26 sgreen@redhat.com - Bug 903895 _fix_components_primary_key(); + # 2014-06-09 dylan@mozilla.com - Bug 1022923 + $dbh->bz_add_index('bug_user_last_visit', + 'bug_user_last_visit_last_visit_ts_idx', + ['last_visit_ts']); + ################################################################ # New --TABLE-- changes should go *** A B O V E *** this point # ################################################################