Show
Ignore:
Timestamp:
04/02/08 23:27:20 (20 months ago)
Author:
bchoate
Message:

Adding embedded column to MT::ObjectAsset. BugId:71500. Thanks, Tim!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-33/lib/MT/Upgrade.pm

    r1583 r1731  
    548548            priority => 5.1, 
    549549        }, 
     550        'core_migrate_commenter_auth' => { 
     551            code => \&migrate_commenter_auth, 
     552            version_limit => 3.3101, 
     553            priority => 3.1, 
     554        }, 
    550555        'core_deprecate_bitmask_permissions' => { 
    551556            code => \&deprecate_bitmask_permissions, 
     
    557562            version_limit => 4.0002, 
    558563            priority => 3.3, 
    559         }, 
    560         'core_migrate_commenter_auth' => { 
    561             code => \&migrate_commenter_auth, 
    562             version_limit => 3.3101, 
    563             priority => 3.1, 
    564564        }, 
    565565        'core_populate_authored_on' => { 
     
    689689                type => 'author', 
    690690                label => 'Adding new feature widget to dashboard...', 
     691                condition => sub { 
     692                    my ($user) = @_; 
     693                    $user->type == MT::Author::AUTHOR(); # AUTHOR records only 
     694                }, 
    691695                code => sub { 
    692696                    my ($user) = @_; 
     
    703707                    } 
    704708                    $user->widgets($widget_store); 
    705                     $user->save; 
    706709                }, 
    707710            }, 
     
    775778                    } 
    776779                    $blog->page_layout($layout); 
    777                     $blog->save; 
    778780                }, 
    779781            }, 
     
    792794                    my $basename = MT::Util::make_unique_author_basename($author); 
    793795                    $author->basename($basename); 
    794                     $author->save; 
    795796                }, 
    796797            }, 
     
    806807            updater       => { 
    807808                type      => 'entry', 
    808                 label     => 'Assigning entry comment and trackback count...', 
     809                label     => 'Assigning entry comment and TrackBack counts...', 
    809810                condition => sub { 
    810811                    require MT::Comment; 
     
    834835                # it doesn't have the unnecessary save. 
    835836                code => sub { 1; }, 
     837            }, 
     838        }, 
     839        'core_assign_object_embedded' => { 
     840            version_limit => 4.0052, 
     841            priority => 3.2, 
     842            updater => { 
     843                type => 'objectasset', 
     844                label => 'Assigning embedded flag to asset placements...', 
     845                code => sub { 
     846                    $_[0]->embedded(1); 
     847                }, 
     848                sql => 'update mt_objectasset set objectasset_embedded=1', 
    836849            }, 
    837850        },