]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 431669: The "product_id" column is incorrectly defined in the "group_control_map...
authorlpsolit%gmail.com <>
Tue, 29 Jul 2008 13:24:22 +0000 (13:24 +0000)
committerlpsolit%gmail.com <>
Tue, 29 Jul 2008 13:24:22 +0000 (13:24 +0000)
Bugzilla/DB/Schema.pm
Bugzilla/Install/DB.pm

index 06a956222c8882b0e71e48f5b5c260d663264f6d..850e48a1bae0e5e467a4ea1a652d0afb6791ae75 100644 (file)
@@ -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},
index 54dbfc5644947d4f11a6b0cfffd613343e86e509..63a6dd2b032082798e645fc9a858d5cc1e8d49f0 100644 (file)
@@ -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 #