added Subscribable AssetAspect to Wiki

This commit is contained in:
Doug Bell 2009-09-09 17:24:00 -05:00
parent b838102df5
commit 0697673846
15 changed files with 936 additions and 56 deletions

Binary file not shown.

View file

@ -33,6 +33,7 @@ my $session = start(); # this line required
# upgrade functions go here
reorganizeAdSpaceProperties($session);
fixTemplateSettingsFromShunt($session);
addSubscribableAspect( $session );
finish($session); # this line required
@ -46,6 +47,26 @@ finish($session); # this line required
# print "DONE!\n" unless $quiet;
#}
#----------------------------------------------------------------------------
# Add tables for the subscribable aspect
sub addSubscribableAspect {
my $session = shift;
print "\tAdding Subscribable aspect..." unless $quiet;
$session->db->write( <<'ESQL' );
CREATE TABLE assetAspect_Subscribable (
assetId CHAR(22) BINARY NOT NULL,
revisionDate BIGINT NOT NULL,
subscriptionGroupId CHAR(22) BINARY,
subscriptionTemplateId CHAR(22) BINARY,
skipNotification INT,
PRIMARY KEY ( assetId, revisionDate )
)
ESQL
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Describe what our function does
sub reorganizeAdSpaceProperties {