From 790e8bbba2ae44ebc7473c61b3e9f7aafa8e2d5e Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 13 Nov 2006 10:50:16 +0000 Subject: Bug 350307: Split out the create and update functionality of Bugzilla::Field::create_or_update Patch By Max Kanat-Alexander r=LpSolit, a=justdave --- Bugzilla/DB.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Bugzilla/DB.pm') diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index f851e4533..cefd361ae 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -587,6 +587,8 @@ sub _bz_add_table_raw { sub bz_add_field_table { my ($self, $name) = @_; my $table_schema = $self->_bz_schema->FIELD_TABLE_SCHEMA; + # We do nothing if the table already exists. + return if $self->bz_table_info($name); my $indexes = $table_schema->{INDEXES}; # $indexes is an arrayref, not a hash. In order to fix the keys, # we have to fix every other item. -- cgit v1.2.3-24-g4f1b