diff options
author | Yorhel <git@yorhel.nl> | 2009-12-05 13:22:53 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-12-05 13:22:53 +0100 |
commit | 7554f305ae27091ccff6a692180a5af7282df766 (patch) | |
tree | e0c93d34c1748b4ad58040550665eb5427df156b /lib/VNDB/Handler/Releases.pm | |
parent | fbcadd3ceb50a97dab4dd5cd284cc35e8b89b3b4 (diff) |
Merged db[VN|Producer|Release][Edit|Add] into dbItemEdit and dbItemAdd
And also changed the way the item_table.latest column was updated: it is
now only updated after the revision insert has completed, making it
easier to write trigger functions in SQL.
Diffstat (limited to 'lib/VNDB/Handler/Releases.pm')
-rw-r--r-- | lib/VNDB/Handler/Releases.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm index b699e596..b9d7a277 100644 --- a/lib/VNDB/Handler/Releases.pm +++ b/lib/VNDB/Handler/Releases.pm @@ -358,8 +358,8 @@ sub edit { ); $rev = 1; - ($rev) = $self->dbReleaseEdit($rid, %opts) if !$copy && $rid; - ($rid) = $self->dbReleaseAdd(%opts) if $copy || !$rid; + ($rev) = $self->dbItemEdit(r => $rid, %opts) if !$copy && $rid; + ($rid) = $self->dbItemAdd(r => %opts) if $copy || !$rid; $self->dbVNCache(@$new_vn, map $_->{vid}, @$vn); |