initial release of Asset Report asset allowing reports to be created using asset properties.

This commit is contained in:
khenn 2010-08-10 18:53:22 -05:00
parent cb2bb75d23
commit 22da7c4114
10 changed files with 1405 additions and 0 deletions

View file

@ -13,6 +13,7 @@
- fixed #11432: DataTable date input
- fixed #11772: Metadata in Post doesn't set default value correctly
- fixed #11768: Edit Branch does not update File wgaccess permissions
- added Asset Report Asset allowing creation of reports based on Asset Properties.
7.9.10
- fixed #11721: spamStopWords not in WebGUI.conf.original

Binary file not shown.

View file

@ -32,6 +32,7 @@ my $session = start(); # this line required
# upgrade functions go here
alterStoryTopicTable($session);
addAssetReport($session);
finish($session); # this line required
@ -45,6 +46,30 @@ finish($session); # this line required
# 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;
}
#----------------------------------------------------------------------------
# Describe what our function does
sub alterStoryTopicTable {