race condition causes upgrade.pl to fail (Martin Kamerbeek / Oqapi)

This commit is contained in:
JT Smith 2007-05-02 19:30:39 +00:00
parent c653988391
commit 5ee03110d7
2 changed files with 4 additions and 2 deletions

View file

@ -2,6 +2,7 @@
- fix: Wiki titles not automatically linked
- fix: Email to forum not working from Mac
- fix: Unable to set size in DynamicField (Diona Kidd / Knowmad)
- fix: race condition causes upgrade.pl to fail (Martin Kamerbeek / Oqapi)
- fix: Calendar Events Disappearing
http://www.plainblack.com/bugs/tracker/calendar-events-disappearing
- fix: Modified SQLForm.pm to handle MySQL null dates. Undefs them. Undef dates default to time(), i.e. today's date

View file

@ -194,7 +194,8 @@ foreach my $filename (keys %{$configs}) {
$config{$filename}{mysqlDump} = $configs->{$filename}->get("mysqlDump");
$config{$filename}{backupPath} = $configs->{$filename}->get("backupPath");
my $session = WebGUI::Session->open($webguiRoot,$filename);
($config{$filename}{version}) = $session->db->quickArray("select webguiVersion from webguiVersion order by dateApplied desc, webguiVersion desc limit 1");
($config{$filename}{version}) = $session->db->quickArray("select webguiVersion from webguiVersion order by
dateApplied desc, length(webguiVersion) desc, webguiVersion desc limit 1");
unless ($history) {
print "\tPreparing site for upgrade.\n" unless ($quiet);
unless ($skipMaintenance) {
@ -344,7 +345,7 @@ sub checkVersion {
$_[0] =~ /(\d+)\.(\d+)\.(\d+)/;
my $goal = 6;
my $feature = 8;
my $fix = 5;
my $fix = 10;
if ($1 > $goal) {
return 1;
} elsif ($1 == $goal) {