remove temporary table left over from 7.5.11 upgrade

This commit is contained in:
Colin Kuskie 2008-06-19 21:39:20 +00:00
parent 085f521225
commit b338e660ea
2 changed files with 13 additions and 0 deletions

View file

@ -23,6 +23,7 @@
switch to the RichEdit asset.
- added: Next and Previous GalleryAlbum links in the GalleryAlbum views
- fixed: Shop: Variants in dropdown and on page
- fixed: OLD subscription table still hanging around?
7.5.12
- skipping this release

View file

@ -32,6 +32,7 @@ fixShop($session);
addSelectableProfileTemplates($session);
addCouponThankYouMessage($session);
addRichEditMedia( $session );
cleanUpOldSubscriptionTable( $session);
finish($session); # this line required
@ -59,6 +60,15 @@ sub fixShop {
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
sub cleanUpOldSubscriptionTable {
my $session = shift;
print "\tClean up the old subscription table.\n" unless $quiet;
my $db = $session->db;
$db->write("DROP TABLE Subscription_OLD");
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
sub addSelectableProfileTemplates {
my $session = shift;
@ -69,6 +79,7 @@ sub addSelectableProfileTemplates {
$tmpl = $session->setting->get('editUserProfileTemplate') || 'PBtmpl0000000000000051';
$session->setting->remove('editUserProfileTemplate');
$session->setting->add('editUserProfileTemplate', $tmpl);
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
@ -76,6 +87,7 @@ sub addCouponThankYouMessage {
my $session = shift;
print "\tAdding Thank You Message to Coupon table...\n" unless $quiet;
$session->db->write('alter table FlatDiscount add column thankYouMessage mediumtext');
print "DONE!\n" unless $quiet;
}