- fix [ 1197620 ] upgrade_6.2.11-6.3.0.pl : Missing posts - FIXED!
This commit is contained in:
parent
949b3e810f
commit
5ee21b7183
1 changed files with 6 additions and 6 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue