[open-ils-commits] r16876 - in trunk/Open-ILS/src/sql/Pg: . upgrade (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 8 09:40:03 EDT 2010
Author: phasefx
Date: 2010-07-08 09:40:01 -0400 (Thu, 08 Jul 2010)
New Revision: 16876
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0328.schema.mccp_name_column.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/080.schema.money.sql
Log:
adding a cc_name field to money.credit_card_payment to hold the human name on the credit card
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-07-08 13:24:17 UTC (rev 16875)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-07-08 13:40:01 UTC (rev 16876)
@@ -68,7 +68,7 @@
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,
Modified: trunk/Open-ILS/src/sql/Pg/080.schema.money.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/080.schema.money.sql 2010-07-08 13:24:17 UTC (rev 16875)
+++ trunk/Open-ILS/src/sql/Pg/080.schema.money.sql 2010-07-08 13:40:01 UTC (rev 16876)
@@ -627,6 +627,7 @@
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
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0328.schema.mccp_name_column.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0328.schema.mccp_name_column.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0328.schema.mccp_name_column.sql 2010-07-08 13:40:01 UTC (rev 16876)
@@ -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;
More information about the open-ils-commits
mailing list