Skip to content

Commit

Permalink
[#633 state:resolved] [#634 state:resolved] Added default ('0') to cu…
Browse files Browse the repository at this point in the history
…rrent_revision column_defs which resolves the revisioning problem for all objects
  • Loading branch information
jayallen committed Jan 11, 2011
1 parent cd8f6a4 commit b979808
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/MT/Revisable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ sub install_properties {
my $props = $class->properties;
my $datasource = $class->datasource;

$props->{column_defs}{current_revision}
= { label => 'Revision Number', type => 'integer', not_null => 1 };
$props->{column_defs}{current_revision} = {
label => 'Revision Number',
type => 'integer',
not_null => 1,
default => 0,
};
$class->install_column('current_revision');
$props->{defaults}{current_revision} = 0;

Expand Down

0 comments on commit b979808

Please sign in to comment.