diff --git a/docs/upgrades/packages-7.8.24-7.9.11/merged.wgpkg b/docs/upgrades/packages-7.8.24-7.9.11/merged.wgpkg index d1b2335e9..c63bce540 100644 Binary files a/docs/upgrades/packages-7.8.24-7.9.11/merged.wgpkg and b/docs/upgrades/packages-7.8.24-7.9.11/merged.wgpkg differ diff --git a/docs/upgrades/upgrade_7.8.24-7.9.11.pl b/docs/upgrades/upgrade_7.8.24-7.9.11.pl index b96054134..e75cfc8bd 100644 --- a/docs/upgrades/upgrade_7.8.24-7.9.11.pl +++ b/docs/upgrades/upgrade_7.8.24-7.9.11.pl @@ -73,6 +73,7 @@ alterStoryArchiveTable($session); ##7.9.10-.11 alterStoryTopicTable($session); +addAssetReport($session); finish($session); # this line required @@ -436,6 +437,30 @@ sub alterStoryTopicTable { print "DONE!\n" unless $quiet; } +#---------------------------------------------------------------------------- +# Describe what our function does +sub addAssetReport { + my $session = shift; + print "\tAdding Asset Report Asset ... " unless $quiet; + + #Add the database table + $session->db->write(q{ + CREATE TABLE `AssetReport` ( + `assetId` char(22) character set utf8 collate utf8_bin NOT NULL, + `revisionDate` bigint(20) NOT NULL, + `settings` mediumtext, + `templateId` char(22) character set utf8 collate utf8_bin default NULL, + `paginateAfter` bigint(20) default NULL, + PRIMARY KEY (`assetId`,`revisionDate`) + ) + }); + + #Add the asset to the config file + $session->config->addToHash( "assets", "WebGUI::Asset::Wobject::AssetReport", { category => "utilities" } ); + + print "DONE!\n" unless $quiet; +} + # -------------- DO NOT EDIT BELOW THIS LINE -------------------------------- diff --git a/etc/WebGUI.conf.original b/etc/WebGUI.conf.original index 2a1354e4a..70f1d255c 100644 --- a/etc/WebGUI.conf.original +++ b/etc/WebGUI.conf.original @@ -602,6 +602,9 @@ "WebGUI::Asset::Wobject::Article" : { "category" : "basic" }, + "WebGUI::Asset::Wobject::AssetReport" : { + "category" : "utilities" + }, "WebGUI::Asset::Wobject::Search" : { "category" : "basic" },