Show
Ignore:
Timestamp:
04/11/08 19:19:30 (19 months ago)
Author:
bchoate
Message:

Changes to store binary state to junk_status column. BugId:79280

Files:
1 modified

Legend:

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

    r1806 r1866  
    463463        }, 
    464464        'core_init_comment_junk_status' => { 
    465             on_field => 'MT::Comment->junk_status', 
     465            version_limit => 4.0053, 
    466466            priority => 3.1, 
    467467            updater => { 
    468468                type => 'comment', 
    469                 condition => sub { !defined $_[0]->junk_status }, 
     469                condition => sub { !$_[0]->junk_status }, 
    470470                code => sub { $_[0]->junk_status(1) }, 
    471471                label => 'Assigning junk status for comments...', 
    472472                sql => 'update mt_comment set comment_junk_status = 1 
    473                         where comment_junk_status is null', 
     473                        where comment_junk_status is null 
     474                           or comment_junk_status=0', 
    474475            } 
    475476        }, 
     
    487488        }, 
    488489        'core_init_tbping_junk_status' => { 
    489             on_field => 'MT::TBPing->junk_status', 
     490            version_limit => 4.0053, 
    490491            priority => 3.1, 
    491492            updater => { 
    492493                type => 'tbping', 
    493                 condition => sub { !defined $_[0]->junk_status }, 
     494                condition => sub { !$_[0]->junk_status }, 
    494495                code => sub { $_[0]->junk_status(1) }, 
    495496                label => 'Assigning junk status for TrackBacks...', 
    496497                sql => 'update mt_tbping set tbping_junk_status = 1 
    497                         where tbping_junk_status is null', 
     498                        where tbping_junk_status is null 
     499                          or tbping_junk_status=0', 
    498500            } 
    499501        },