From: Rob Thorne Date: Thu, 30 Apr 2015 01:44:07 +0000 (+0000) Subject: CRM-16367 (Payment): changes in version number for schema xml; Jenkins related fixes... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=78c35cc995b7f8f52c4ca4708fa4a9f572e1dee8;p=civicrm-core.git CRM-16367 (Payment): changes in version number for schema xml; Jenkins related fixes in xml and sql --- diff --git a/CRM/Upgrade/Incremental/sql/4.6.3.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.6.3.mysql.tpl index c496abe13d..00d760552d 100644 --- a/CRM/Upgrade/Incremental/sql/4.6.3.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/4.6.3.mysql.tpl @@ -1,10 +1,9 @@ {* file to handle db changes in 4.6.3 during upgrade *} - --- +-- -- CRM-16367: adding the shared payment token table -- -CREATE TABLE `civicrm_payment_token` ( +CREATE TABLE IF NOT EXISTS `civicrm_payment_token` ( `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Payment Token ID', `contact_id` int unsigned NOT NULL COMMENT 'FK to Contact ID for the owner of the token', @@ -18,14 +17,15 @@ CREATE TABLE `civicrm_payment_token` ( `billing_middle_name` varchar(255) COMMENT 'Billing middle name at the time of token creation. Useful for fraud forensics', `billing_last_name` varchar(255) COMMENT 'Billing last name at the time of token creation. Useful for fraud forensics', `masked_account_number` varchar(255) COMMENT 'Holds the part of the card number or account details that may be retained or displayed', - `ip_address` varchar(255) COMMENT 'IP used when creating the token. Useful for fraud forensics', - PRIMARY KEY ( `id` ), - CONSTRAINT FK_civicrm_payment_token_contact_id FOREIGN KEY (`contact_id`) - REFERENCES `civicrm_contact`(`id`) ON DELETE CASCADE, - CONSTRAINT FK_civicrm_payment_token_payment_processor_id FOREIGN KEY (`payment_processor_id`) - REFERENCES `civicrm_payment_processor`(`id`) ON DELETE RESTRICT, - CONSTRAINT FK_civicrm_payment_token_created_id FOREIGN KEY (`created_id`) + `ip_address` varchar(255) COMMENT 'IP used when creating the token. Useful for fraud forensics' , + PRIMARY KEY ( `id` ), + CONSTRAINT FK_civicrm_payment_token_contact_id FOREIGN KEY (`contact_id`) + REFERENCES `civicrm_contact`(`id`) ON DELETE CASCADE, + CONSTRAINT FK_civicrm_payment_token_payment_processor_id FOREIGN KEY (`payment_processor_id`) + REFERENCES `civicrm_payment_processor`(`id`) ON DELETE RESTRICT, + CONSTRAINT FK_civicrm_payment_token_created_id FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact`(`id`) ON DELETE SET NULL - -) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ; - +) +ENGINE=InnoDB DEFAULT +CHARACTER SET utf8 +COLLATE utf8_unicode_ci; diff --git a/xml/schema/Financial/PaymentToken.xml b/xml/schema/Financial/PaymentToken.xml index 221d7edaa2..04588aeba4 100644 --- a/xml/schema/Financial/PaymentToken.xml +++ b/xml/schema/Financial/PaymentToken.xml @@ -5,13 +5,15 @@ PaymentToken civicrm_payment_token Payment Token - 4.7 + 4.6 - id + id + payment_token_id + Payment Token ID int unsigned true Payment Token ID - 4.7 + 4.6 id @@ -23,13 +25,13 @@ int unsigned true FK to Contact ID for the owner of the token - 4.7 + 4.6 contact_id civicrm_contact
id - 4.7 + 4.6 CASCADE
@@ -38,88 +40,98 @@ int unsigned true - 4.7 + 4.6 payment_processor_id civicrm_payment_processor
id - 4.7 + 4.6 RESTRICT
token - varchar + varchar + Token 255 true Externally provided token string - 4.7 + 4.6 - created_date + created_date + Created Date timestamp Date created - 4.7 + 4.6 - created_id + created_id + Created ID int unsigned Contact ID of token creator - 4.7 + 4.6 created_id civicrm_contact
id - 4.7 + 4.6 SET NULL
- expiry_date + expiry_date + Expiry Date datetime Date this token expires - 4.7 + 4.6 - email + email + Email 255 varchar Email at the time of token creation. Useful for fraud forensics - 4.7 + 4.6 - billing_first_name + billing_first_name + Billing First Name varchar 255 Billing first name at the time of token creation. Useful for fraud forensics - 4.7 + 4.6 billing_middle_name + Billing Middle Name varchar 255 Billing middle name at the time of token creation. Useful for fraud forensics - 4.7 + 4.6 billing_last_name + Billing Last Name varchar 255 Billing last name at the time of token creation. Useful for fraud forensics - 4.7 + 4.6 - masked_account_number + masked_account_number + Masked Account Number varchar 255 Holds the part of the card number or account details that may be retained or displayed - 4.7 + 4.6 - ip_address + ip_address + IP Address varchar 255 IP used when creating the token. Useful for fraud forensics - 4.7 + 4.6