summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-08 20:02:38 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-08 20:02:38 +0200
commit0e8eb4037e3931e408aeb98f2ed5760710c961a2 (patch)
tree05444d713f39bbdc8f54cebc339f8da2978cd2a2 /Bugzilla/DB.pm
parent3c61e66fe3d24f183628a7396a3fcd720a95abeb (diff)
downloadbugzilla-0e8eb4037e3931e408aeb98f2ed5760710c961a2.tar.gz
bugzilla-0e8eb4037e3931e408aeb98f2ed5760710c961a2.tar.xz
Bug 577520: Make the "Adding new table..." message not appear during
xt/search.t r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/DB.pm')
-rw-r--r--Bugzilla/DB.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm
index 7173ff896..de688e6fc 100644
--- a/Bugzilla/DB.pm
+++ b/Bugzilla/DB.pm
@@ -688,7 +688,8 @@ sub bz_add_table {
sub _bz_add_table_raw {
my ($self, $name) = @_;
my @statements = $self->_bz_schema->get_table_ddl($name);
- print "Adding new table $name ...\n" unless i_am_cgi();
+ print "Adding new table $name ...\n"
+ if Bugzilla->usage_mode == USAGE_MODE_CMDLINE;
$self->do($_) foreach (@statements);
}