From: scottmk Date: Tue, 21 Jul 2009 20:34:05 +0000 (+0000) Subject: Adding a column "workstation" to action.circulation X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=25c2d074bcd882d03005b6d017e09d8bfbbe977f;p=evergreen%2Fbjwebb.git Adding a column "workstation" to action.circulation git-svn-id: svn://svn.open-ils.org/ILS/trunk@13675 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index e576ad780..e0ba9c1fe 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -729,9 +729,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + + @@ -2072,6 +2074,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + @@ -2095,6 +2098,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + diff --git a/Open-ILS/src/sql/Pg/090.schema.action.sql b/Open-ILS/src/sql/Pg/090.schema.action.sql index c277c3c09..d770e20df 100644 --- a/Open-ILS/src/sql/Pg/090.schema.action.sql +++ b/Open-ILS/src/sql/Pg/090.schema.action.sql @@ -123,7 +123,10 @@ CREATE TABLE action.circulation ( duration_rule TEXT NOT NULL, -- name of "circ duration" rule recuring_fine_rule TEXT NOT NULL, -- name of "circ fine" rule max_fine_rule TEXT NOT NULL, -- name of "max fine" rule - stop_fines TEXT CHECK (stop_fines IN ('CHECKIN','CLAIMSRETURNED','LOST','MAXFINES','RENEW','LONGOVERDUE')) + stop_fines TEXT CHECK (stop_fines IN ('CHECKIN','CLAIMSRETURNED','LOST','MAXFINES','RENEW','LONGOVERDUE')), + workstation INT REFERENCES actor.org_unit(id) + ON DELETE SET NULL + DEFERRABLE INITIALLY DEFERRED ) INHERITS (money.billable_xact); ALTER TABLE action.circulation ADD PRIMARY KEY (id); CREATE INDEX circ_open_xacts_idx ON action.circulation (usr) WHERE xact_finish IS NULL;