diff --git a/docs/upgrades/upgrade_4.6.9-4.7.0.sql b/docs/upgrades/upgrade_4.6.9-4.7.0.sql index 6686b942d..521cb4640 100644 --- a/docs/upgrades/upgrade_4.6.9-4.7.0.sql +++ b/docs/upgrades/upgrade_4.6.9-4.7.0.sql @@ -47,11 +47,12 @@ update incrementer set nextValue=nextValue+974 where incrementerId='pageId'; update page set pageId=pageId+974 where pageId>25; update page set parentId=parentId+974 where parentId>25; update page set styleId=styleId+974 where styleId>25; +update wobject set pageId=pageId+974 where pageId>25; update incrementer set nextValue=nextValue+974 where incrementerId='styleId'; update style set styleId=styleId+974 where styleId>25; -update discussion set messageId=messageId+999; -update discussion set rid=rid+999; -update discussion set pid=pid+999 where pid<>0; +update discussion set messageId=messageId+50000; +update discussion set rid=rid+50000; +update discussion set pid=pid+50000 where pid<>0; update incrementer set nextValue=nextValue+999 where incrementerId='messageId'; update messageLog set messageLogId=messageLogId+999; update incrementer set nextValue=nextValue+999 where incrementerId='messageLogId'; diff --git a/lib/WebGUI/Discussion.pm b/lib/WebGUI/Discussion.pm index 298f7b22a..8b3792622 100644 --- a/lib/WebGUI/Discussion.pm +++ b/lib/WebGUI/Discussion.pm @@ -464,7 +464,6 @@ sub showReplyTree { ''.WebGUI::International::get(245).''; @data = WebGUI::SQL->quickArray("select messageId,subject,username,dateOfPost,userId,status from discussion where messageId=$message{rid}"); - $data[1] = WebGUI::HTML::filter($data[1],'all'); $html .= 'quickArray("select min(messageId) from discussion where wobjectId=".$_[0]->get("wobjectId")); $session{form}{mid} = $session{form}{mid} || $defaultMid || 0; $output = WebGUI::Discussion::showMessage($_[1],$_[0]); - $output .= WebGUI::Discussion::showThreads(); + $output .= WebGUI::Discussion::showReplyTree(); return $output; } diff --git a/sbin/upgrade.pl b/sbin/upgrade.pl index 3292e54c9..8884a1544 100644 --- a/sbin/upgrade.pl +++ b/sbin/upgrade.pl @@ -100,9 +100,9 @@ foreach $config (keys %config) { print "\n".$config{$config}{db}." ".$upgrade{$upgrade}{from}."-".$upgrade{$upgrade}{to}."\n"; print "\tBacking up $config{$config}{db} ($upgrade{$upgrade}{from}).\n"; mkdir($backupDir."/db/".$config{$config}{db}); - system($mysqldump." -u".$config{$config}{dbuser}." -p".$config{$config}{dbpass}." --add-drop-table ".$config{$config}{db}." > ".$backupDir."/db/".$config{$config}{db}."/".$upgrade{$upgrade}{from}.".sql"); + system($mysqldump." -u".$config{$config}{dbuser}." -p".$config{$config}{dbpass}." --add-drop-table --databases ".$config{$config}{db}." > ".$backupDir."/db/".$config{$config}{db}."/".$upgrade{$upgrade}{from}.".sql"); print "\tUpgrading to $upgrade{$upgrade}{to}.\n"; - system($mysql." -u".$config{$config}{dbuser}." -p".$config{$config}{dbpass}." --add-drop-table ".$config{$config}{db}." < ".$upgrade{$upgrade}{sql}); + system($mysql." -u".$config{$config}{dbuser}." -p".$config{$config}{dbpass}." --database=".$config{$config}{db}." < ".$upgrade{$upgrade}{sql}); $config{$config}{version} = $upgrade{$upgrade}{to}; } }