Add audit tables for acq.invoice, acq.invoice_item, and acq.invoice_entry.
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 Apr 2010 02:08:47 +0000 (02:08 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 Apr 2010 02:08:47 +0000 (02:08 +0000)
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

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16187 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/901.audit-tables.sql
Open-ILS/src/sql/Pg/upgrade/0232.schema.audit-invoice.sql [new file with mode: 0644]

index cbb068c..8832aa2 100644 (file)
@@ -60,7 +60,7 @@ CREATE TABLE config.upgrade_log (
     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,
index fd159f2..56aabe2 100644 (file)
@@ -37,5 +37,11 @@ SELECT auditor.create_auditor ( 'asset', 'copy' );
 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;
 
diff --git a/Open-ILS/src/sql/Pg/upgrade/0232.schema.audit-invoice.sql b/Open-ILS/src/sql/Pg/upgrade/0232.schema.audit-invoice.sql
new file mode 100644 (file)
index 0000000..f2b8d31
--- /dev/null
@@ -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;