summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-12-13 23:07:48 +0100
committermkanat%bugzilla.org <>2009-12-13 23:07:48 +0100
commitb82b431228907463af9cefce2caebd3a2e12693b (patch)
tree401f8a35e09517193610c78a0f79637fea49eb8f /Bugzilla/Install
parente401b0b8b925787cbe52d0f540b814e40269f228 (diff)
downloadbugzilla-b82b431228907463af9cefce2caebd3a2e12693b.tar.gz
bugzilla-b82b431228907463af9cefce2caebd3a2e12693b.tar.xz
Bug 369489: Remove the milestoneurl feature and link "Target Milestone" to the fields.html page
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r--Bugzilla/Install/DB.pm10
1 files changed, 6 insertions, 4 deletions
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',