[open-ils-commits] r10191 - trunk/Open-ILS/src/sql/Pg

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jul 30 13:37:52 EDT 2008


Author: miker
Date: 2008-07-30 13:37:44 -0400 (Wed, 30 Jul 2008)
New Revision: 10191

Modified:
   trunk/Open-ILS/src/sql/Pg/010.schema.biblio.sql
Log:
add a reasonable prefix to autogenerated TCNs

Modified: trunk/Open-ILS/src/sql/Pg/010.schema.biblio.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/010.schema.biblio.sql	2008-07-30 17:09:39 UTC (rev 10190)
+++ trunk/Open-ILS/src/sql/Pg/010.schema.biblio.sql	2008-07-30 17:37:44 UTC (rev 10191)
@@ -22,7 +22,7 @@
 
 CREATE SEQUENCE biblio.autogen_tcn_value_seq;
 CREATE FUNCTION biblio.next_autogen_tcn_value () RETURNS TEXT AS $$
-	BEGIN RETURN nextval('biblio.autogen_tcn_value_seq'::TEXT); END;
+	BEGIN RETURN 'AUTOGENERATED-' || nextval('biblio.autogen_tcn_value_seq'::TEXT); END;
 $$ LANGUAGE PLPGSQL;
 
 CREATE TABLE biblio.record_entry (



More information about the open-ils-commits mailing list