From: Steve Sutton Date: Thu, 14 Dec 2017 11:29:45 +0000 (-0500) Subject: Updating the db scripts X-Git-Tag: v1.0.0^2~194 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=2c67bde193d6bf7029dae184938f143a5970b50e;p=WP-Plugins%2Fglm-member-db-billing.git Updating the db scripts Correcting: need to add field to transactions: account --- diff --git a/classes/billingSupport.php b/classes/billingSupport.php index f78da34..a81a8d4 100644 --- a/classes/billingSupport.php +++ b/classes/billingSupport.php @@ -191,7 +191,13 @@ class GlmBillingSupport 'current_invoice_total' => $current_invoice_total, 'current_payment_total' => $current_payment_total, ), - array() + array( + '%d', + '%d', + '%s', + '%s', + '%s' + ) ); } diff --git a/setup/databaseScripts/update_database_V0.0.2.sql b/setup/databaseScripts/update_database_V0.0.2.sql index 3447a7e..e74e9d9 100644 --- a/setup/databaseScripts/update_database_V0.0.2.sql +++ b/setup/databaseScripts/update_database_V0.0.2.sql @@ -13,3 +13,8 @@ CREATE TABLE {prefix}pdfs ( pdf MEDIUMTEXT NOT NULL, -- saved pdf PRIMARY KEY (id) ); + +---- + +-- Add account field to the transaction table +ALTER TABLE {prefix}transactions ADD account INT NOT NULL; -- reference to account id