Add po_item column to auditor.acq_invoice_item_history.
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 28 Apr 2010 21:28:45 +0000 (21:28 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 28 Apr 2010 21:28:45 +0000 (21:28 +0000)
M    Open-ILS/src/sql/Pg/002.schema.config.sql
A    Open-ILS/src/sql/Pg/upgrade/0244.schema.acq-inv-item-hist-po-item.sql

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

Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0244.schema.acq-inv-item-hist-po-item.sql [new file with mode: 0644]

index d1cc354..3f0efae 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 ('0243'); -- Scott McKellar
+INSERT INTO config.upgrade_log (version) VALUES ('0244'); -- Scott McKellar
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0244.schema.acq-inv-item-hist-po-item.sql b/Open-ILS/src/sql/Pg/upgrade/0244.schema.acq-inv-item-hist-po-item.sql
new file mode 100644 (file)
index 0000000..0b32522
--- /dev/null
@@ -0,0 +1,8 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0244'); -- Scott McKellar
+
+ALTER TABLE auditor.acq_invoice_item_history
+       ADD COLUMN po_item INT;
+
+COMMIT;