Update changelog and upgrade scripts to build shunt from 7.7.20 to 7.8.0
This commit is contained in:
parent
a8e4b0b9a9
commit
e751c7ffea
2 changed files with 17 additions and 44 deletions
|
|
@ -32,9 +32,7 @@ my $session = start(); # this line required
|
|||
|
||||
# upgrade functions go here
|
||||
reorganizeAdSpaceProperties($session);
|
||||
fixTemplateSettingsFromShunt($session);
|
||||
addSubscribableAspect( $session );
|
||||
addMatrixColumnDefaults($session);
|
||||
addFeaturedPageWiki( $session );
|
||||
fixEmptyCalendarIcalFeeds( $session );
|
||||
upgradeToYUI28( $session );
|
||||
|
|
@ -167,36 +165,6 @@ sub reorganizeAdSpaceProperties {
|
|||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Describe what our function does
|
||||
sub addMatrixColumnDefaults {
|
||||
my $session = shift;
|
||||
print "\tUpdate existing Matrixes with default values for maxComparisons... " unless $quiet;
|
||||
$session->db->write(q|UPDATE Matrix set maxComparisons=25 where maxComparisons IS NULL|);
|
||||
$session->db->write(q|UPDATE Matrix set maxComparisonsGroupInt=25 where maxComparisonsGroupInt IS NULL|);
|
||||
$session->db->write(q|UPDATE Matrix set maxComparisonsPrivileged=25 where maxComparisonsPrivileged IS NULL|);
|
||||
# and here's our code
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
sub fixTemplateSettingsFromShunt {
|
||||
my $session = shift;
|
||||
print "\tClear isPackage and set isDefault on recently imported templates... " unless $quiet;
|
||||
ASSET: foreach my $assetId (qw/PBtmpl0000000000000137 CarouselTmpl0000000002 aIpCmr9Hi__vgdZnDTz1jw
|
||||
2CS-BErrjMmESOtGT90qOg 2rC4ErZ3c77OJzJm7O5s3w pbtmpl0000000000000220
|
||||
pbtmpl0000000000000221 2gtFt7c0qAFNU3BG_uvNvg PBtmpl0000000000000081
|
||||
ThingyTmpl000000000001 PcRRPhh-0KfvLLNIPdxJTw g8W53Pd71uHB9pxaXhWf_A/) {
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($session, $assetId);
|
||||
next ASSET unless $asset;
|
||||
$asset->update({
|
||||
isPackage => 0,
|
||||
isDefault => 1,
|
||||
});
|
||||
}
|
||||
# and here's our code
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
Loading…
Add table
Add a link
Reference in a new issue