Bug 1022923 - Add index to bug_user_last_visit.last_visit_ts

r/a=glob
parent 6f1a5f0a
......@@ -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'],
],
},
};
......
......@@ -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 #
################################################################
......
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