From b82b431228907463af9cefce2caebd3a2e12693b Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sun, 13 Dec 2009 22:07:48 +0000 Subject: Bug 369489: Remove the milestoneurl feature and link "Target Milestone" to the fields.html page Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- Bugzilla/Install/DB.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Bugzilla/Install') diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index 74668a3bb..0d117bc12 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -459,8 +459,10 @@ sub update_table_definitions { _move_data_nomail_into_db(); # The products table lacked sensible defaults. - $dbh->bz_alter_column('products', 'milestoneurl', - {TYPE => 'TINYTEXT', NOTNULL => 1, DEFAULT => "''"}); + if ($dbh->bz_column_info('products', 'milestoneurl') { + $dbh->bz_alter_column('products', 'milestoneurl', + {TYPE => 'TINYTEXT', NOTNULL => 1, DEFAULT => "''"}); + } if ($dbh->bz_column_info('products', 'disallownew')){ $dbh->bz_alter_column('products', 'disallownew', {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 0}); @@ -588,6 +590,8 @@ sub update_table_definitions { _set_attachment_comment_types(); + $dbh->bz_drop_column('products', 'milestoneurl'); + ################################################################ # New --TABLE-- changes should go *** A B O V E *** this point # ################################################################ @@ -623,8 +627,6 @@ sub _update_pre_checksetup_bugzillas { {TYPE => 'BOOLEAN', NOTNULL => 1}, 0); } - $dbh->bz_add_column('products', 'milestoneurl', - {TYPE => 'TINYTEXT', NOTNULL => 1}, ''); $dbh->bz_add_column('components', 'initialqacontact', {TYPE => 'TINYTEXT'}); $dbh->bz_add_column('components', 'description', -- cgit v1.2.3-24-g4f1b