diff options
author | mkanat%bugzilla.org <> | 2006-11-13 11:50:16 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-11-13 11:50:16 +0100 |
commit | 790e8bbba2ae44ebc7473c61b3e9f7aafa8e2d5e (patch) | |
tree | ea9d837aa0a314357e96856721b62b3cb1ff9b8e /Bugzilla/DB.pm | |
parent | dacf3a2a88daac318c600712ebd75e74e9430c12 (diff) | |
download | bugzilla-790e8bbba2ae44ebc7473c61b3e9f7aafa8e2d5e.tar.gz bugzilla-790e8bbba2ae44ebc7473c61b3e9f7aafa8e2d5e.tar.xz |
Bug 350307: Split out the create and update functionality of Bugzilla::Field::create_or_update
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave
Diffstat (limited to 'Bugzilla/DB.pm')
-rw-r--r-- | Bugzilla/DB.pm | 2 |
1 files changed, 2 insertions, 0 deletions
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. |