From 3d1d632305a62156b31bf15dac18ecac4c3348a2 Mon Sep 17 00:00:00 2001 From: scottmk Date: Tue, 15 Sep 2009 15:22:40 +0000 Subject: [PATCH] Add checkin_workstation column to action.circulation. For changing an existing table: ALTER TABLE action.circulation ADD COLUMN checkin_workstation INT REFERENCES actor.workstation(id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED; git-svn-id: svn://svn.open-ils.org/ILS/trunk@14020 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/examples/fm_IDL.xml | 3 +++ Open-ILS/src/sql/Pg/090.schema.action.sql | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 25e2fbda60..8e76924c7c 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -734,6 +734,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + @@ -2075,6 +2076,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + @@ -2099,6 +2101,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 4482af3ab7..2de8ce37c7 100644 --- a/Open-ILS/src/sql/Pg/090.schema.action.sql +++ b/Open-ILS/src/sql/Pg/090.schema.action.sql @@ -126,6 +126,9 @@ CREATE TABLE action.circulation ( stop_fines TEXT CHECK (stop_fines IN ('CHECKIN','CLAIMSRETURNED','LOST','MAXFINES','RENEW','LONGOVERDUE')), workstation INT REFERENCES actor.workstation(id) ON DELETE SET NULL + DEFERRABLE INITIALLY DEFERRED, + checkin_workstation INT REFERENCES actor.workstation(id) + ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED ) INHERITS (money.billable_xact); ALTER TABLE action.circulation ADD PRIMARY KEY (id); -- 2.11.0