adding a cc_name field to money.credit_card_payment to hold the human name on the...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Jul 2010 13:40:01 +0000 (13:40 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Jul 2010 13:40:01 +0000 (13:40 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16876 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/080.schema.money.sql
Open-ILS/src/sql/Pg/upgrade/0328.schema.mccp_name_column.sql [new file with mode: 0644]

index 51bf0e8..aabe211 100644 (file)
@@ -68,7 +68,7 @@ CREATE TABLE config.upgrade_log (
     install_date    TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
 );
 
-INSERT INTO config.upgrade_log (version) VALUES ('0327'); -- berick
+INSERT INTO config.upgrade_log (version) VALUES ('0328'); -- phasefx
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
index e84a996..597069b 100644 (file)
@@ -627,6 +627,7 @@ CREATE TABLE money.credit_card_payment (
        cc_type         TEXT,
        cc_number       TEXT,
     cc_processor TEXT,
+    cc_name TEXT, -- name of account holder, not the name of the credit card :)
        expire_month    INT,
        expire_year     INT,
        approval_code   TEXT
diff --git a/Open-ILS/src/sql/Pg/upgrade/0328.schema.mccp_name_column.sql b/Open-ILS/src/sql/Pg/upgrade/0328.schema.mccp_name_column.sql
new file mode 100644 (file)
index 0000000..0572fbd
--- /dev/null
@@ -0,0 +1,7 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0328'); -- phasefx
+
+ALTER TABLE money.credit_card_payment ADD COLUMN cc_name TEXT;
+
+COMMIT;