diff options
author | mkanat%bugzilla.org <> | 2009-12-31 13:48:21 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-12-31 13:48:21 +0100 |
commit | 1a4a843db26f6c3c208fa5dfdca7933b7cb76db2 (patch) | |
tree | 6a5766dc9b7c6cd5a06eb80eb8043714da6af5da /Bugzilla/DB.pm | |
parent | 958e1a758168b4908bcdd237518ab85b93d7e1bb (diff) | |
download | bugzilla-1a4a843db26f6c3c208fa5dfdca7933b7cb76db2.tar.gz bugzilla-1a4a843db26f6c3c208fa5dfdca7933b7cb76db2.tar.xz |
Bug 520318: Add remove_from_db to Bugzilla:Group and use it to delete groups in editgroups.cgi
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=LpSolit
Diffstat (limited to 'Bugzilla/DB.pm')
-rw-r--r-- | Bugzilla/DB.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index 7e40c1627..830d2835e 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -837,6 +837,14 @@ sub bz_drop_table { } } +sub bz_fk_info { + my ($self, $table, $column) = @_; + my $col_info = $self->bz_column_info($table, $column); + return undef if !$col_info; + my $fk = $col_info->{REFERENCES}; + return $fk; +} + sub bz_rename_column { my ($self, $table, $old_name, $new_name) = @_; |