From: Oliver Gorwits Date: Mon, 26 Apr 2010 20:57:43 +0000 (+0000) Subject: add comment about why we have not null set on create_id X-Git-Tag: v0.900201~30 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1befad28dfab272fef929de05740de914d30b4c4;p=dbsrgits%2FDBIx-Class-Journal.git add comment about why we have not null set on create_id --- diff --git a/lib/DBIx/Class/Schema/Journal/DB/AuditLog.pm b/lib/DBIx/Class/Schema/Journal/DB/AuditLog.pm index 472d94b..70fe818 100644 --- a/lib/DBIx/Class/Schema/Journal/DB/AuditLog.pm +++ b/lib/DBIx/Class/Schema/Journal/DB/AuditLog.pm @@ -7,6 +7,10 @@ sub journal_define_table { $class->table($source->name . '_audit_log'); + # the create_id is the id of first insertion of the row + # so we always know where to roll back to + # and presumably should be supplied on every insert + $class->add_columns( create_id => { data_type => 'integer',