[open-ils-commits] r13521 - trunk/Open-ILS/src/sql/Pg (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jul 8 00:43:06 EDT 2009
Author: scottmk
Date: 2009-07-08 00:43:03 -0400 (Wed, 08 Jul 2009)
New Revision: 13521
Modified:
trunk/Open-ILS/src/sql/Pg/090.schema.action.sql
Log:
Add an ON DELETE CASCADE clause to the foreign key pointing
from action.hold_notification to action.hold_request.
Modified: trunk/Open-ILS/src/sql/Pg/090.schema.action.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/090.schema.action.sql 2009-07-08 02:51:48 UTC (rev 13520)
+++ trunk/Open-ILS/src/sql/Pg/090.schema.action.sql 2009-07-08 04:43:03 UTC (rev 13521)
@@ -313,8 +313,10 @@
CREATE TABLE action.hold_notification (
id SERIAL PRIMARY KEY,
- hold INT NOT NULL REFERENCES action.hold_request (id) DEFERRABLE INITIALLY DEFERRED,
- notify_staff INT REFERENCES actor.usr (id) DEFERRABLE INITIALLY DEFERRED,
+ hold INT NOT NULL REFERENCES action.hold_request (id)
+ ON DELETE CASCADE
+ DEFERRABLE INITIALLY DEFERRED,
+ notify_staff INT REFERENCES actor.usr (id) DEFERRABLE INITIALLY DEFERRED,
notify_time TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
method TEXT NOT NULL, -- email address or phone number
note TEXT
More information about the open-ils-commits
mailing list