[open-ils-commits] r14183 - trunk/Open-ILS/src/sql/Pg/upgrade (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Sep 28 16:45:59 EDT 2009


Author: phasefx
Date: 2009-09-28 16:45:54 -0400 (Mon, 28 Sep 2009)
New Revision: 14183

Modified:
   trunk/Open-ILS/src/sql/Pg/upgrade/0024.data.default_billing_type.sql
Log:
logic error; only want to change the sequence if we are insert this billing type

Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0024.data.default_billing_type.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0024.data.default_billing_type.sql	2009-09-28 20:40:08 UTC (rev 14182)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0024.data.default_billing_type.sql	2009-09-28 20:45:54 UTC (rev 14183)
@@ -4,6 +4,6 @@
 
 -- This only gets inserted if there are no other id > 100 billing types
 INSERT INTO config.billing_type (id, name, owner) SELECT DISTINCT 101, oils_i18n_gettext(101, 'Misc', 'cbt', 'name'), 1 FROM config.billing_type_id_seq WHERE last_value < 101;
-SELECT SETVAL('config.billing_type_id_seq'::TEXT, 101);
+SELECT SETVAL('config.billing_type_id_seq'::TEXT, 101) FROM config.billing_type_id_seq WHERE last_value < 101;
 
 COMMIT;



More information about the open-ils-commits mailing list