From: phasefx Date: Thu, 8 Jul 2010 14:11:06 +0000 (+0000) Subject: column tweaks. If you already ran 0328, see comments at top X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7450ab627ffd0c06782f0dfbc15b0ce0e62601cd;p=evergreen%2Fbjwebb.git column tweaks. If you already ran 0328, see comments at top git-svn-id: svn://svn.open-ils.org/ILS/trunk@16877 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/080.schema.money.sql b/Open-ILS/src/sql/Pg/080.schema.money.sql index 597069b29..f54c46c55 100644 --- a/Open-ILS/src/sql/Pg/080.schema.money.sql +++ b/Open-ILS/src/sql/Pg/080.schema.money.sql @@ -627,7 +627,8 @@ 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 :) + cc_first_name TEXT, + cc_last_name TEXT, 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 index 0572fbdd0..c30eecee0 100644 --- 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 @@ -1,7 +1,12 @@ +-- If you ran this before its most recent incarnation: +-- delete from config.upgrade_log where version = '0328'; +-- alter table money.credit_card_payment drop column cc_name; + BEGIN; INSERT INTO config.upgrade_log (version) VALUES ('0328'); -- phasefx -ALTER TABLE money.credit_card_payment ADD COLUMN cc_name TEXT; +ALTER TABLE money.credit_card_payment ADD COLUMN cc_first_name TEXT; +ALTER TABLE money.credit_card_payment ADD COLUMN cc_last_name TEXT; COMMIT;