aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-08-25 15:50:54 +0100
committerSam James <sam@gentoo.org>2024-08-25 18:03:03 +0100
commitd246371922106654b70ea57e8d29f973f30b894c (patch)
treec95ef8d38bc131fc81006b88511e2b9214928750
parentextensions: import RestrictComments from bmo (diff)
downloadbugzilla-d246371922106654b70ea57e8d29f973f30b894c.tar.gz
bugzilla-d246371922106654b70ea57e8d29f973f30b894c.tar.bz2
bugzilla-d246371922106654b70ea57e8d29f973f30b894c.zip
extensions: RestrictComments: use int
Our BZ doesn't have the bool type. Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--extensions/RestrictComments/Extension.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/RestrictComments/Extension.pm b/extensions/RestrictComments/Extension.pm
index 71971079b..9f2afde6a 100644
--- a/extensions/RestrictComments/Extension.pm
+++ b/extensions/RestrictComments/Extension.pm
@@ -97,11 +97,11 @@ sub install_update_db {
Bugzilla::Field->create({
name => 'restrict_comments',
description => 'Restrict Comments',
- type => FIELD_TYPE_BOOLEAN,
+ type => FIELD_TYPE_INTEGER,
});
}
- $dbh->bz_add_column('bugs', 'restrict_comments', {TYPE => 'BOOLEAN'});
+ $dbh->bz_add_column('bugs', 'restrict_comments', {TYPE => 'INT2'});
}
__PACKAGE__->NAME;