summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-07-29 15:24:22 +0200
committerlpsolit%gmail.com <>2008-07-29 15:24:22 +0200
commit6c62f841490783a42ffc837387cdf371c7ab12cb (patch)
tree5efba096e0085c8b23759adaa952a01bd0c5296d /Bugzilla
parentf33f48241e0a32e62fbaab4267b0eb585d9b0b9f (diff)
downloadbugzilla-6c62f841490783a42ffc837387cdf371c7ab12cb.tar.gz
bugzilla-6c62f841490783a42ffc837387cdf371c7ab12cb.tar.xz
Bug 431669: The "product_id" column is incorrectly defined in the "group_control_map" DB table - Patch by Tony Fu <tfu@redhat.com> r=LpSolit a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/DB/Schema.pm2
-rw-r--r--Bugzilla/Install/DB.pm4
2 files changed, 5 insertions, 1 deletions
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm
index 06a956222..850e48a1b 100644
--- a/Bugzilla/DB/Schema.pm
+++ b/Bugzilla/DB/Schema.pm
@@ -990,7 +990,7 @@ use constant ABSTRACT_SCHEMA => {
group_control_map => {
FIELDS => [
group_id => {TYPE => 'INT3', NOTNULL => 1},
- product_id => {TYPE => 'INT3', NOTNULL => 1},
+ product_id => {TYPE => 'INT2', NOTNULL => 1},
entry => {TYPE => 'BOOLEAN', NOTNULL => 1},
membercontrol => {TYPE => 'BOOLEAN', NOTNULL => 1},
othercontrol => {TYPE => 'BOOLEAN', NOTNULL => 1},
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index 54dbfc564..63a6dd2b0 100644
--- a/Bugzilla/Install/DB.pm
+++ b/Bugzilla/Install/DB.pm
@@ -528,6 +528,10 @@ sub update_table_definitions {
# Add FK to multi select field tables
_add_foreign_keys_to_multiselects();
+
+ # 2008-07-28 tfu@redhat.com - Bug 431669
+ $dbh->bz_alter_column('group_control_map', 'product_id',
+ { TYPE => 'INT2', NOTNULL => 1 });
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #