[open-ils-commits] r12092 - trunk/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Feb 6 10:24:04 EST 2009
Author: miker
Date: 2009-02-06 10:24:02 -0500 (Fri, 06 Feb 2009)
New Revision: 12092
Modified:
trunk/Open-ILS/src/sql/Pg/090.schema.action.sql
Log:
/actually/ pin the ids, and set the sequence appropriately
Modified: trunk/Open-ILS/src/sql/Pg/090.schema.action.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/090.schema.action.sql 2009-02-06 15:05:41 UTC (rev 12091)
+++ trunk/Open-ILS/src/sql/Pg/090.schema.action.sql 2009-02-06 15:24:02 UTC (rev 12092)
@@ -251,12 +251,13 @@
id SERIAL PRIMARY KEY,
label TEXT UNIQUE
);
-INSERT INTO action.hold_request_cancel_cause (label) VALUES ('Untargeted expiration'); -- 1
-INSERT INTO action.hold_request_cancel_cause (label) VALUES ('Hold Shelf expiration'); -- 2
-INSERT INTO action.hold_request_cancel_cause (label) VALUES ('Patron via phone'); -- 3
-INSERT INTO action.hold_request_cancel_cause (label) VALUES ('Patron in person'); -- 4
-INSERT INTO action.hold_request_cancel_cause (label) VALUES ('Staff forced'); -- 5
-INSERT INTO action.hold_request_cancel_cause (label) VALUES ('Patron via OPAC'); -- 6
+INSERT INTO action.hold_request_cancel_cause (id,label) VALUES (1,'Untargeted expiration');
+INSERT INTO action.hold_request_cancel_cause (id,label) VALUES (2,'Hold Shelf expiration');
+INSERT INTO action.hold_request_cancel_cause (id,label) VALUES (3,'Patron via phone');
+INSERT INTO action.hold_request_cancel_cause (id,label) VALUES (4,'Patron in person');
+INSERT INTO action.hold_request_cancel_cause (id,label) VALUES (5,'Staff forced');
+INSERT INTO action.hold_request_cancel_cause (id,label) VALUES (6,'Patron via OPAC');
+SELECT SETVAL('action.hold_request_cancel_cause_id_seq', 100);
CREATE TABLE action.hold_request (
id SERIAL PRIMARY KEY,
More information about the open-ils-commits
mailing list