[Bps-public-commit] jifty-plugin-recordhistory branch, master, updated. 93b644a61d25551bb59a275242546f5932295128

Shawn Moore sartak at bestpractical.com
Tue Feb 8 00:07:05 EST 2011


The branch, master has been updated
       via  93b644a61d25551bb59a275242546f5932295128 (commit)
      from  244ca3e9d9fa7acabb79c5bf448e2af8fd6c6b4d (commit)

Summary of changes:
 .../Plugin/RecordHistory/Model/Transaction.pm      |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 93b644a61d25551bb59a275242546f5932295128
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Feb 8 00:06:55 2011 -0500

    Four more columns on txns

diff --git a/lib/Jifty/Plugin/RecordHistory/Model/Transaction.pm b/lib/Jifty/Plugin/RecordHistory/Model/Transaction.pm
index ebce6d8..326ca3e 100644
--- a/lib/Jifty/Plugin/RecordHistory/Model/Transaction.pm
+++ b/lib/Jifty/Plugin/RecordHistory/Model/Transaction.pm
@@ -13,6 +13,26 @@ use Jifty::Record schema {
         type is 'integer',
         is mandatory,
         is immutable;
+
+    # XXX: associate this with the app's user modl
+    column created_by =>
+        type is 'integer',
+        label is 'Created by',
+        is immutable;
+
+    column created_on =>
+        type is 'timestamp',
+        label is 'Created on',
+        filters are qw(Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime),
+        is immutable;
+
+    column type =>
+        type is 'text',
+        label is 'Type',
+        is immutable;
+
+    column changes =>
+        refers_to Jifty::Plugin::RecordHistory::Model::TransactionEntryCollection by 'transaction';
 };
 
 sub record {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list