Skip to content

Commit

Permalink
Backport bug 69267 to BMO (Add the ability to deactivate keywords) - …
Browse files Browse the repository at this point in the history
…schema only

r=glob
  • Loading branch information
dylanwh committed May 13, 2015
1 parent 0622523 commit bdaf609
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Bugzilla/DB/Schema.pm
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,8 @@ use constant ABSTRACT_SCHEMA => {
PRIMARYKEY => 1},
name => {TYPE => 'varchar(64)', NOTNULL => 1},
description => {TYPE => 'MEDIUMTEXT', NOTNULL => 1},
is_active => {TYPE => 'BOOLEAN', NOTNULL => 1,
DEFAULT => 'TRUE'},
],
INDEXES => [
keyworddefs_name_idx => {FIELDS => ['name'],
Expand Down
4 changes: 4 additions & 0 deletions Bugzilla/Install/DB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,10 @@ sub update_table_definitions {
# 2014-10-?? dkl@mozilla.com - Bug 1062940
$dbh->bz_alter_column('bugs', 'alias', { TYPE => 'varchar(40)' });

# 2015-05-13 dylan@mozilla.com - Bug 1160430
$dbh->bz_add_column('keyworddefs', 'is_active',
{TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'TRUE'});

################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
################################################################
Expand Down

0 comments on commit bdaf609

Please sign in to comment.