[open-ils-commits] r18756 - branches/rel_2_0/Open-ILS/src/sql/Pg (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Nov 16 11:52:25 EST 2010


Author: miker
Date: 2010-11-16 11:52:22 -0500 (Tue, 16 Nov 2010)
New Revision: 18756

Modified:
   branches/rel_2_0/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: branches/rel_2_0/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql
===================================================================
--- branches/rel_2_0/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql	2010-11-16 16:51:49 UTC (rev 18755)
+++ branches/rel_2_0/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql	2010-11-16 16:52:22 UTC (rev 18756)
@@ -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, (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