From 5009c96c3214d28ffda5ce8a679cde47f7697615 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 27 Feb 2009 22:25:47 +0000 Subject: [PATCH] Modify default config file. Upgrade script adds Story Manager assets to site config files. --- docs/upgrades/upgrade_7.6.14-7.7.0.pl | 40 +++++++++++++++++++++------ etc/WebGUI.conf.original | 7 +++++ 2 files changed, 38 insertions(+), 9 deletions(-) diff --git a/docs/upgrades/upgrade_7.6.14-7.7.0.pl b/docs/upgrades/upgrade_7.6.14-7.7.0.pl index 0efe8dbbf..26b1d2af8 100644 --- a/docs/upgrades/upgrade_7.6.14-7.7.0.pl +++ b/docs/upgrades/upgrade_7.6.14-7.7.0.pl @@ -32,6 +32,7 @@ my $session = start(); # this line required # upgrade functions go here installStoryManagerTables($session); +upgradeConfigFiles($session); finish($session); # this line required @@ -66,15 +67,16 @@ EOSTORY $db->write(<config; + $config->addToHash( + 'assets', + 'WebGUI::Asset::Wobject::StoryTopic' => { + 'category' => 'community' + }, + ); + $config->addToHash( + 'assets', + "WebGUI::Asset::Wobject::StoryArchive" => { + "isContainer" => 1, + "category" => "community" + }, + ); + print "DONE!\n" unless $quiet; +} + # -------------- DO NOT EDIT BELOW THIS LINE -------------------------------- #---------------------------------------------------------------------------- diff --git a/etc/WebGUI.conf.original b/etc/WebGUI.conf.original index 8d553f304..0215e146b 100644 --- a/etc/WebGUI.conf.original +++ b/etc/WebGUI.conf.original @@ -502,6 +502,13 @@ "isContainer" : 1, "category" : "community" }, + "WebGUI::Asset::Wobject::StoryArchive" : { + "isContainer" : 1, + "category" : "community" + }, + "WebGUI::Asset::Wobject::StoryTopic" : { + "category" : "community" + }, "WebGUI::Asset::Wobject::StockData" : { "category" : "intranet" },