RSS

(root)/bugzilla/4.2 : 7456 : Bugzilla/Install/DB.pm

To get this branch, use:
bzr branch /bugzilla/4.2

« back to all changes in this revision

Viewing changes to Bugzilla/Install/DB.pm

Dave Lawrence
2010-08-30 21:20:07
Revision ID: dkl@redhat.com-20100831042007-0zf306r0aj9k73wr
Bug 77193 - Add the ability to retire (disable) old versions, components and milestones
r/a=mkanat

Show diffs side-by-side

added added

removed removed

631
631
    # 2010-07-18 LpSolit@gmail.com - Bug 119703
632
632
    _remove_attachment_isurl();
633
633
 
 
634
    # 2009-05-07 ghendricks@novell.com - Bug 77193
 
635
    _add_isactive_to_product_fields();
 
636
 
634
637
    ################################################################
635
638
    # New --TABLE-- changes should go *** A B O V E *** this point #
636
639
    ################################################################
3397
3400
    }
3398
3401
}
3399
3402
 
 
3403
sub _add_isactive_to_product_fields {
 
3404
    my $dbh = Bugzilla->dbh;
 
3405
 
 
3406
    # If we add the isactive column all values should start off as active
 
3407
    if (!$dbh->bz_column_info('components', 'isactive')) {
 
3408
        $dbh->bz_add_column('components', 'isactive', 
 
3409
            {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'TRUE'});
 
3410
    }
 
3411
    
 
3412
    if (!$dbh->bz_column_info('versions', 'isactive')) {
 
3413
        $dbh->bz_add_column('versions', 'isactive', 
 
3414
            {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'TRUE'});
 
3415
    }
 
3416
 
 
3417
    if (!$dbh->bz_column_info('milestones', 'isactive')) {
 
3418
        $dbh->bz_add_column('milestones', 'isactive', 
 
3419
            {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'TRUE'});
 
3420
    }
 
3421
}
 
3422
 
3400
3423
sub _migrate_field_visibility_value {
3401
3424
    my $dbh = Bugzilla->dbh;
3402
3425
 

Loggerhead 1.18.1 is a web-based interface for Bazaar branches