Changeset 1897

Show
Ignore:
Timestamp:
04/14/08 22:19:20 (19 months ago)
Author:
bchoate
Message:

Upgrade users with existing MT::Notification objects with an enabled address book setting. bugid:78883

Location:
branches/release-35
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/release-35/build/mt-dists/default.mk

    r1866 r1897  
    22 
    33PRODUCT_VERSION = 4.15 
    4 SCHEMA_VERSION = 4.0053 
     4SCHEMA_VERSION = 4.0054 
    55API_VERSION = 4.15 
    66 
  • branches/release-35/lib/MT/Upgrade.pm

    r1873 r1897  
    861861                }, 
    862862                sql => 'update mt_objectasset set objectasset_embedded=1', 
     863            }, 
     864        }, 
     865        'core_enable_address_book' => { 
     866            version_limit => 4.0054, 
     867            priority => 3.2, 
     868            code => sub { 
     869                require MT::Notification; 
     870                if (MT::Notification->exist()) { 
     871                    my $cfg = MT->config; 
     872                    if (! $cfg->EnableAddressBook) { 
     873                        $cfg->EnableAddressBook(1, 1); 
     874                        $cfg->save; 
     875                    } 
     876                } 
     877                return 0; 
    863878            }, 
    864879        },