[open-ils-commits] r16187 - in trunk/Open-ILS/src/sql/Pg: . upgrade (scottmk)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Apr 8 22:08:49 EDT 2010


Author: scottmk
Date: 2010-04-08 22:08:47 -0400 (Thu, 08 Apr 2010)
New Revision: 16187

Added:
   trunk/Open-ILS/src/sql/Pg/upgrade/0232.schema.audit-invoice.sql
Modified:
   trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
   trunk/Open-ILS/src/sql/Pg/901.audit-tables.sql
Log:
Add audit tables for acq.invoice, acq.invoice_item, and acq.invoice_entry.

M    Open-ILS/src/sql/Pg/002.schema.config.sql
M    Open-ILS/src/sql/Pg/901.audit-tables.sql
A    Open-ILS/src/sql/Pg/upgrade/0232.schema.audit-invoice.sql


Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql	2010-04-08 23:57:34 UTC (rev 16186)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql	2010-04-09 02:08:47 UTC (rev 16187)
@@ -60,7 +60,7 @@
     install_date    TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
 );
 
-INSERT INTO config.upgrade_log (version) VALUES ('0231'); -- Scott McKellar
+INSERT INTO config.upgrade_log (version) VALUES ('0232'); -- Scott McKellar
 
 CREATE TABLE config.bib_source (
 	id		SERIAL	PRIMARY KEY,

Modified: trunk/Open-ILS/src/sql/Pg/901.audit-tables.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/901.audit-tables.sql	2010-04-08 23:57:34 UTC (rev 16186)
+++ trunk/Open-ILS/src/sql/Pg/901.audit-tables.sql	2010-04-09 02:08:47 UTC (rev 16187)
@@ -37,5 +37,11 @@
 CREATE INDEX aud_asset_cp_hist_creator_idx        ON auditor.asset_copy_history ( creator );
 CREATE INDEX aud_asset_cp_hist_editor_idx         ON auditor.asset_copy_history ( editor );
 
+SELECT auditor.create_auditor ( 'acq', 'invoice' );
+
+SELECT auditor.create_auditor ( 'acq', 'invoice_item' );
+
+SELECT auditor.create_auditor ( 'acq', 'invoice_entry' );
+
 COMMIT;
 

Added: trunk/Open-ILS/src/sql/Pg/upgrade/0232.schema.audit-invoice.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0232.schema.audit-invoice.sql	                        (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0232.schema.audit-invoice.sql	2010-04-09 02:08:47 UTC (rev 16187)
@@ -0,0 +1,11 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0232'); -- Scott McKellar
+
+SELECT auditor.create_auditor ( 'acq', 'invoice' );
+
+SELECT auditor.create_auditor ( 'acq', 'invoice_item' );
+
+SELECT auditor.create_auditor ( 'acq', 'invoice_entry' );
+
+COMMIT;



More information about the open-ils-commits mailing list