summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install/DB.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-06-01 05:45:21 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-06-01 05:45:21 +0200
commit5b260d690fd4aa80404ef3fd49027761d1167e89 (patch)
tree66fcafb6406a01eb10e7e385488951fff7a4d975 /Bugzilla/Install/DB.pm
parent0679b5e998311a5099374fa647e8b82dfd8048ac (diff)
downloadbugzilla-5b260d690fd4aa80404ef3fd49027761d1167e89.tar.gz
bugzilla-5b260d690fd4aa80404ef3fd49027761d1167e89.tar.xz
Bug 561379: Upgrading from 3.4.4 to 3.6 would fails with ORA-01400,
because checksetup.pl was trying to run code that should never run on Oracle. r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Install/DB.pm')
-rw-r--r--Bugzilla/Install/DB.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index 0d9513ccf..e7d9c675c 100644
--- a/Bugzilla/Install/DB.pm
+++ b/Bugzilla/Install/DB.pm
@@ -1864,6 +1864,12 @@ sub _remove_spaces_and_commas_from_flagtypes {
sub _setup_usebuggroups_backward_compatibility {
my $dbh = Bugzilla->dbh;
+
+ # Don't run this on newer Bugzillas. This is a reliable test because
+ # the longdescs table existed in 2.16 (which had usebuggroups)
+ # but not in 2.18, and this code happens between 2.16 and 2.18.
+ return if $dbh->bz_column_info('longdescs', 'already_wrapped');
+
# 2002-11-24 - bugreport@peshkin.net - bug 147275
#
# If group_control_map is empty, backward-compatibility
@@ -1871,6 +1877,7 @@ sub _setup_usebuggroups_backward_compatibility {
my ($maps_exist) = $dbh->selectrow_array(
"SELECT DISTINCT 1 FROM group_control_map");
if (!$maps_exist) {
+ print "Converting old usebuggroups controls...\n";
# Initially populate group_control_map.
# First, get all the existing products and their groups.
my $sth = $dbh->prepare("SELECT groups.id, products.id, groups.name,