added column to indicate that an invoice is complete/done/closed
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 16 Apr 2010 18:36:31 +0000 (18:36 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 16 Apr 2010 18:36:31 +0000 (18:36 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16256 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/200.schema.acq.sql
Open-ILS/src/sql/Pg/upgrade/0235.schema.acq-invoice-complete.sql [new file with mode: 0644]

index 75bf411..e9ed813 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 ('0234'); -- phasefx
+INSERT INTO config.upgrade_log (version) VALUES ('0235'); -- berick
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
index 42291df..8fba151 100644 (file)
@@ -803,6 +803,7 @@ CREATE TABLE acq.invoice (
        payment_method TEXT     REFERENCES acq.invoice_payment_method (code)
                                DEFERRABLE INITIALLY DEFERRED,
        note        TEXT,
+    complete    BOOL        NOT NULL DEFAULT FALSE,
     CONSTRAINT  inv_ident_once_per_provider UNIQUE(provider, inv_ident)
 );
 
diff --git a/Open-ILS/src/sql/Pg/upgrade/0235.schema.acq-invoice-complete.sql b/Open-ILS/src/sql/Pg/upgrade/0235.schema.acq-invoice-complete.sql
new file mode 100644 (file)
index 0000000..27cddca
--- /dev/null
@@ -0,0 +1,8 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0235');
+
+ALTER TABLE acq.invoice
+    ADD COLUMN complete BOOL NOT NULL DEFAULT FALSE;
+
+COMMIT;