Alter asset.acp_status_changed() function for restrict_copy_delete.
authorJason Stephenson <jstephenson@mvlc.org>
Wed, 12 Oct 2011 14:50:53 +0000 (10:50 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Tue, 22 Nov 2011 14:27:53 +0000 (09:27 -0500)
commit13435ac95905f090402d068a8bba8c640da04ce6
treed2abb1eca1cfc555a4b40de26b3dcdb5ca824163
parent4ed09a2c58841d5810b20043f5c9f5c6007acfca
Alter asset.acp_status_changed() function for restrict_copy_delete.

Add a check for a change to the deleted field to true and then check
if the new status restricts copy deletion. If so, set the deleted
to FALSE in the NEW row.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/sql/Pg/040.schema.asset.sql