From 7450ab627ffd0c06782f0dfbc15b0ce0e62601cd Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 8 Jul 2010 14:11:06 +0000 Subject: [PATCH] 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 --- Open-ILS/src/sql/Pg/080.schema.money.sql | 3 ++- Open-ILS/src/sql/Pg/upgrade/0328.schema.mccp_name_column.sql | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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; -- 2.11.0