Updating the db scripts
authorSteve Sutton <ssutton@gmail.com>
Thu, 14 Dec 2017 11:29:45 +0000 (06:29 -0500)
committerSteve Sutton <ssutton@gmail.com>
Thu, 14 Dec 2017 11:29:45 +0000 (06:29 -0500)
Correcting: need to add field to transactions: account

classes/billingSupport.php
setup/databaseScripts/update_database_V0.0.2.sql

index f78da34..a81a8d4 100644 (file)
@@ -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'
+            )
         );
     }
 
index 3447a7e..e74e9d9 100644 (file)
@@ -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