fix skipNotification adding
This commit is contained in:
parent
52e413ad71
commit
b49c5bf2a1
1 changed files with 3 additions and 2 deletions
|
|
@ -24,6 +24,8 @@ my $session = start(); # this line required
|
||||||
# upgrade functions go here
|
# upgrade functions go here
|
||||||
fixCalendarFeedsLastUpdatedField($session);
|
fixCalendarFeedsLastUpdatedField($session);
|
||||||
addThreadRatingColumn($session);
|
addThreadRatingColumn($session);
|
||||||
|
addSkipNotificationColumn($session);
|
||||||
|
updateTemplates($session);
|
||||||
|
|
||||||
finish($session); # this line required
|
finish($session); # this line required
|
||||||
|
|
||||||
|
|
@ -70,7 +72,7 @@ sub addThreadRatingColumn {
|
||||||
sub addSkipNotificationColumn {
|
sub addSkipNotificationColumn {
|
||||||
my $session = shift;
|
my $session = shift;
|
||||||
print "\tAdding Skip Notification column to Assets\n" unless ($quiet);
|
print "\tAdding Skip Notification column to Assets\n" unless ($quiet);
|
||||||
$session->db->write("alter table assetData add skipNotification integer not null default 0");
|
$session->db->write("alter table assetData add column skipNotification integer not null default 0");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -89,7 +91,6 @@ sub start {
|
||||||
my $versionTag = WebGUI::VersionTag->getWorking($session);
|
my $versionTag = WebGUI::VersionTag->getWorking($session);
|
||||||
$versionTag->set({name=>"Upgrade to ".$toVersion});
|
$versionTag->set({name=>"Upgrade to ".$toVersion});
|
||||||
$session->db->write("insert into webguiVersion values (".$session->db->quote($toVersion).",'upgrade',".$session->datetime->time().")");
|
$session->db->write("insert into webguiVersion values (".$session->db->quote($toVersion).",'upgrade',".$session->datetime->time().")");
|
||||||
updateTemplates($session);
|
|
||||||
return $session;
|
return $session;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue