Add upgrade script for changes previously committed, adding two columns
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 22 Sep 2009 17:03:13 +0000 (17:03 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 22 Sep 2009 17:03:13 +0000 (17:03 +0000)
to action.circulation.

A    Open-ILS/src/sql/Pg/upgrade/0011.schema.circ-checkin-ws-and-scan-time.sql

git-svn-id: svn://svn.open-ils.org/ILS/trunk@14086 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/upgrade/0011.schema.circ-checkin-ws-and-scan-time.sql [new file with mode: 0644]

diff --git a/Open-ILS/src/sql/Pg/upgrade/0011.schema.circ-checkin-ws-and-scan-time.sql b/Open-ILS/src/sql/Pg/upgrade/0011.schema.circ-checkin-ws-and-scan-time.sql
new file mode 100644 (file)
index 0000000..dc5bfe4
--- /dev/null
@@ -0,0 +1,15 @@
+BEGIN
+
+INSERT INTO config.upgrade_log (version) VALUES ('0011.schema.circ-checkin-ws-and-scan-time.sql');
+
+ALTER TABLE action.circulation
+ADD COLUMN checkin_workstation INT
+       REFERENCES actor.workstation(id)
+       ON DELETE SET NULL
+       DEFERRABLE INITIALLY DEFERRED;
+
+ALTER TABLE action.circulation
+ADD COLUMN checkin_scan_time TIMESTAMPTZ;
+
+COMMIT;
+