Skip to content

Commit

Permalink
Bug 1000917 - allow user last visit searching (schema only)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanwh committed May 28, 2014
1 parent 7ea36c8 commit 24a16ae
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Bugzilla/DB/Schema.pm
Expand Up @@ -1714,6 +1714,25 @@ use constant ABSTRACT_SCHEMA => {
],
},

bug_user_last_visit => {
FIELDS => [
id => {TYPE => 'INTSERIAL', NOTNULL => 1,
PRIMARYKEY => 1},
user_id => {TYPE => 'INT3', NOTNULL => 1,
REFERENCES => {TABLE => 'profiles',
COLUMN => 'userid',
DELETE => 'CASCADE'}},
bug_id => {TYPE => 'INT3', NOTNULL => 1,
REFERENCES => {TABLE => 'bugs',
COLUMN => 'bug_id',
DELETE => 'CASCADE'}},
last_visit_ts => {TYPE => 'DATETIME', NOTNULL => 1},
],
INDEXES => [
bug_user_last_visit_idx => {FIELDS => ['user_id', 'bug_id'],
TYPE => 'UNIQUE'}
],
},
};

# Foreign Keys are added in Bugzilla::DB::bz_add_field_tables
Expand Down

0 comments on commit 24a16ae

Please sign in to comment.