Changeset 2789
- Timestamp:
- 07/16/08 05:05:53 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/feature-revision-histories/lib/MT/Entry.pm
r2785 r2789 10 10 11 11 use MT::Tag; # Holds MT::Taggable 12 use base qw( MT::Object MT::Taggable MT::Scorable );12 use base qw( MT::Object MT::Taggable MT::Scorable MT::Revisable ); 13 13 14 14 use MT::Blog; branches/feature-revision-histories/lib/MT/Object.pm
r2785 r2789 235 235 $class->install_meta({ ( %meta ? ( column_defs => \%meta ) : ( columns => [] ) ) }); 236 236 $class->add_trigger( post_remove => \&remove_meta ); 237 } 238 239 # Because of the inheritance of MT::Entry by MT::Page, we need to do this here 240 if($class->isa('MT::Revisable')) { 241 $class->install_revisioning(); 237 242 } 238 243 branches/feature-revision-histories/lib/MT/Upgrade.pm
r2732 r2789 1742 1742 1743 1743 my $class = MT->model($type); 1744 1744 1745 1745 # handle schema updates for meta table 1746 1746 if ($class->meta_pkg) { 1747 1747 $self->check_type($type . ':meta'); 1748 } 1749 1750 # handle schema updates for revision table 1751 if ($class->isa('MT::Revisable')) { 1752 $self->check_type($type . ':revision'); 1748 1753 } 1749 1754
