fix: user selected CS sorting should be cleared after last update

updating previousVersion.sql
This commit is contained in:
JT Smith 2007-10-12 16:35:47 +00:00
parent 594d69a0e6
commit b7ca215251
3 changed files with 18 additions and 16 deletions

View file

@ -20,17 +20,20 @@ my $quiet; # this line required
my $session = start(); # this line required
# upgrade functions go here
exampleFunction($session);
finish($session); # this line required
##-------------------------------------------------
#sub exampleFunction {
# my $session = shift;
# print "\tWe're doing some stuff here that you should know about.\n" unless ($quiet);
# # and here's our code
#}
#-------------------------------------------------
sub fixPost {
my $session = shift;
print "\tFixing post problems from previous release.\n" unless ($quiet);
my $db = $session->db;
$db->write("delete from userSessionScratch where value='dateSubmitted'");
$db->write("delete from userSessionScratch where value='dateUpdated'");
$db->write("alter table Collaboration change sortBy sortBy varchar(35) not null default 'assetData.revisionDate'");
}