Skip to content

Commit

Permalink
Bug 1421401 - Implement emoji comment reactions (schema only)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoshino committed Aug 27, 2024
1 parent 9018492 commit 859506f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Bugzilla/DB/Schema.pm
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,32 @@ use constant ABSTRACT_SCHEMA => {
],
},

longdescs_reactions => {
FIELDS => [
id => {TYPE => 'MEDIUMSERIAL', NOTNULL => 1, PRIMARYKEY => 1},
comment_id => {
TYPE => 'INT4',
REFERENCES =>
{TABLE => 'longdescs', COLUMN => 'comment_id', DELETE => 'CASCADE'}
},
user_id => {
TYPE => 'INT3',
NOTNULL => 1,
REFERENCES => {TABLE => 'profiles', COLUMN => 'userid'}
},
reaction => {TYPE => 'varchar(24)', NOTNULL => 1},
],
INDEXES => [
longdescs_reactions_reaction_idx => {
FIELDS => ['comment_id', 'reaction'],
},
longdescs_reactions_user_idx => {
FIELDS => ['comment_id', 'user_id', 'reaction'],
TYPE => 'UNIQUE',
},
],
},

longdescs_tags => {
FIELDS => [
id => {TYPE => 'MEDIUMSERIAL', NOTNULL => 1, PRIMARYKEY => 1},
Expand Down

0 comments on commit 859506f

Please sign in to comment.