From 5ee21b71834424f42524cc6c5ec14f70107ef119 Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Fri, 13 May 2005 13:51:48 +0000 Subject: [PATCH] - fix [ 1197620 ] upgrade_6.2.11-6.3.0.pl : Missing posts - FIXED! --- docs/upgrades/upgrade_6.2.11-6.3.0.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/upgrades/upgrade_6.2.11-6.3.0.pl b/docs/upgrades/upgrade_6.2.11-6.3.0.pl index b3ba41fc9..82ac0315c 100644 --- a/docs/upgrades/upgrade_6.2.11-6.3.0.pl +++ b/docs/upgrades/upgrade_6.2.11-6.3.0.pl @@ -130,11 +130,11 @@ WebGUI::SQL->write("alter table Product_related drop primary key"); WebGUI::SQL->write("alter table Product_related add assetId varchar(22) not null"); WebGUI::SQL->write("alter table Product_related add relatedAssetId varchar(22) not null"); WebGUI::SQL->write("alter table WobjectProxy add column description mediumtext"); -WebGUI::SQL->write("alter table EventsCalendar change column isMaster scope integer not null default 0"); -WebGUI::SQL->write("alter table EventsCalendar_event add column eventLocation text"); -WebGUI::SQL->write("alter table EventsCalendar_event change column startDate eventStartDate bigint(20)"); -WebGUI::SQL->write("alter table EventsCalendar_event change column endDate eventEndDate bigint(20)"); -WebGUI::SQL->write("alter table EventsCalendar_event add column templateId varchar(22)"); +WebGUI::SQL->write("alter table EventsCalendar change column isMaster scope integer not null default 0"); +WebGUI::SQL->write("alter table EventsCalendar_event add column eventLocation text"); +WebGUI::SQL->write("alter table EventsCalendar_event change column startDate eventStartDate bigint(20)"); +WebGUI::SQL->write("alter table EventsCalendar_event change column endDate eventEndDate bigint(20)"); +WebGUI::SQL->write("alter table EventsCalendar_event add column templateId varchar(22)"); WebGUI::SQL->write("alter table EventsCalendar_event add column assetId varchar(22) not null"); WebGUI::SQL->write("alter table EventsCalendar_event drop primary key"); @@ -2413,7 +2413,7 @@ sub migrateForum { # we're going to give up hierarchy during the upgrade for the sake of simplicity print "\t\t\t\t\t\t Migrating posts for thread ".$thread->{forumThreadId}."\n"; my %oldestThreadPost; - my $posts = WebGUI::SQL->read("select * from forumPost where forumThreadId=".quote($thread->{forumThreadId})." and parentId<>0 and forumPost.status<>'deleted'"); + my $posts = WebGUI::SQL->read("select * from forumPost where forumThreadId=".quote($thread->{forumThreadId})." and parentId<>'0' and forumPost.status<>'deleted'"); my $postRank = 1; if ($posts->errorCode>0) { print "\t\t\t\tWARNING: There was a problem migrating the posts for ".$thread->{forumThreadId}."\n";