add #455: Featured page in wiki
This commit is contained in:
parent
cf9df28ddd
commit
6da85b89a7
8 changed files with 152 additions and 0 deletions
Binary file not shown.
BIN
docs/upgrades/packages-7.8.0/default-wiki-page-edit.wgpkg
Normal file
BIN
docs/upgrades/packages-7.8.0/default-wiki-page-edit.wgpkg
Normal file
Binary file not shown.
Binary file not shown.
|
|
@ -35,6 +35,7 @@ reorganizeAdSpaceProperties($session);
|
|||
fixTemplateSettingsFromShunt($session);
|
||||
addSubscribableAspect( $session );
|
||||
addMatrixColumnDefaults($session);
|
||||
addFeaturedPageWiki( $session );
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
|
@ -48,6 +49,19 @@ finish($session); # this line required
|
|||
# print "DONE!\n" unless $quiet;
|
||||
#}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add the column for featured wiki pages
|
||||
sub exampleFunction {
|
||||
my $session = shift;
|
||||
print "\tAdding featured pages to the Wiki " unless $quiet;
|
||||
|
||||
$session->db->write(
|
||||
"ALTER TABLE WikiPage ADD COLUMN isFeatured INT(1)",
|
||||
);
|
||||
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add tables for the subscribable aspect
|
||||
sub addSubscribableAspect {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue