fix a few typos in the upgrade script that I added
This commit is contained in:
parent
f62df91a8f
commit
132c3fe8e2
1 changed files with 3 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ finish($session); # this line required
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
sub fixShop {
|
sub fixShop {
|
||||||
my $session = shift;
|
my $session = shift;
|
||||||
print "\tFixing Shop properties" unless $quiet;
|
print "\tFixing Shop properties." unless $quiet;
|
||||||
my $db = $session->db;
|
my $db = $session->db;
|
||||||
$db->write("update EventManagementSystem set registrationStaffGroupId='3' where registrationStaffGroupId=''");
|
$db->write("update EventManagementSystem set registrationStaffGroupId='3' where registrationStaffGroupId=''");
|
||||||
my ($driverId) = $db->quickScalar("select paymentGatewayId from paymentGateway where className='WebGUI::Shop::PayDriver::ITransact'");
|
my ($driverId) = $db->quickScalar("select paymentGatewayId from paymentGateway where className='WebGUI::Shop::PayDriver::ITransact'");
|
||||||
|
|
@ -49,6 +49,7 @@ sub fixShop {
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
sub addSelectableProfileTemplates {
|
sub addSelectableProfileTemplates {
|
||||||
my $session = shift;
|
my $session = shift;
|
||||||
|
print "\tAdd selectable user profile templates." unless $quiet;
|
||||||
my $tmpl = $session->setting->get('viewUserProfileTemplate') || 'PBtmpl0000000000000052';
|
my $tmpl = $session->setting->get('viewUserProfileTemplate') || 'PBtmpl0000000000000052';
|
||||||
$session->setting->remove('viewUserProfileTemplate');
|
$session->setting->remove('viewUserProfileTemplate');
|
||||||
$session->setting->add('viewUserProfileTemplate', $tmpl);
|
$session->setting->add('viewUserProfileTemplate', $tmpl);
|
||||||
|
|
@ -60,7 +61,7 @@ sub addSelectableProfileTemplates {
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
sub addCouponThankYouMessage {
|
sub addCouponThankYouMessage {
|
||||||
my $session = shift;
|
my $session = shift;
|
||||||
print "\Adding Thank You Message to Coupon table... " unless $quiet;
|
print "\tAdding Thank You Message to Coupon table... " unless $quiet;
|
||||||
$session->db->write('alter table FlatDiscount add column thankYouMessage mediumtext');
|
$session->db->write('alter table FlatDiscount add column thankYouMessage mediumtext');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue