Commit 42cd1084 authored by Michael Iseard's avatar Michael Iseard
Browse files

Add message field to transactions for future use.

parent 00cfb070
......@@ -84,6 +84,12 @@ class TransactionEntity extends AbstractEntity {
* @var string
*/
public $refunds;
/**
* Message
*
* @var string
*/
public $message;
/**
* Gets donor associated with transaction
......
......@@ -149,6 +149,13 @@ class ActivatorService {
]);
}
if ( version_compare( $old_version, '2.5.0', '<' ) ) {
// Add message field to transactions
global $wpdb;
$transaction_table = TransactionEntity::get_table_name();
$wpdb->query( "ALTER TABLE $transaction_table ADD `message` VARCHAR(255)" );
}
}
/**
......@@ -213,6 +220,7 @@ class ActivatorService {
subscription_id VARCHAR(255),
refunds BLOB DEFAULT NULL,
campaign_id VARCHAR(255),
message VARCHAR(255),
secret VARCHAR(255),
PRIMARY KEY (id)
) $charset_collate;";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment