[open-ils-commits] r18754 - trunk/Open-ILS/src/sql/Pg (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Nov 16 11:50:34 EST 2010


Author: miker
Date: 2010-11-16 11:50:31 -0500 (Tue, 16 Nov 2010)
New Revision: 18754

Modified:
   trunk/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql
Log:
push the asset.uri pkey serial into reality -- before 2.0 we did not use the serial

Modified: trunk/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql	2010-11-15 22:43:58 UTC (rev 18753)
+++ trunk/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql	2010-11-16 16:50:31 UTC (rev 18754)
@@ -29,6 +29,9 @@
 
 INSERT INTO config.upgrade_log (version) VALUES ('0461');
 
+-- Push the auri serial in case it's out of date
+SELECT SETVAL('asset.uri'::TEXT, GREATEST((SELECT MAX(id) + 1 FROM asset.uri)));
+
 -- Remove some uses of the connectby() function from the tablefunc contrib module
 CREATE OR REPLACE FUNCTION actor.org_unit_descendants( INT, INT ) RETURNS SETOF actor.org_unit AS $$
     WITH RECURSIVE descendant_depth AS (



More information about the open-ils-commits mailing list