add: Calendar List view and associated Help

add: Ical Page length
add: WWW::Mech tests for Auth and Redirect
This commit is contained in:
Doug Bell 2008-02-28 18:40:06 +00:00
parent fc524df15c
commit 4a65691dcc
8 changed files with 1083 additions and 259 deletions

View file

@ -9,6 +9,8 @@
removed.
- added script to remove unneeded .wgaccess files instead of having it run during upgrade
- fixed: wiki pages link to deleted pages (Arjan Widlak, United Knowledge)
- add: Calendar List View and associated Help
- add: Test::WWW::Mechanize tests for Redirect and Auth
7.5.3
- prevent HTML and Macro injection in usernames

View file

@ -23,6 +23,8 @@ my $quiet; # this line required
my $session = start(); # this line required
addIndexesToSQLForms($session);
addListViewToCalendar( $session );
addIcalPageSize( $session );
finish($session); # this line required
@ -57,6 +59,43 @@ sub addIndexesToSQLForms {
# # and here's our code
#}
#----------------------------------------------------------------------------
# Add the list view columns to the Calendar
sub addListViewToCalendar {
my $session = shift;
print "\tAdding list view to Calendar... " unless $quiet;
$session->db->write(
"ALTER TABLE Calendar ADD COLUMN listViewPageInterval BIGINT"
);
$session->db->write(
"ALTER TABLE Calendar ADD COLUMN templateIdList VARCHAR(22)"
);
$session->db->write(
"ALTER TABLE Calendar ADD COLUMN templateIdPrintList VARCHAR(22)"
);
$session->db->write(
"ALTER TABLE Calendar MODIFY COLUMN defaultView ENUM('month','week','day','list') DEFAULT 'month'"
);
print "DONE!\n" unless $quiet;
return;
}
#----------------------------------------------------------------------------
# Add the ability to set the iCalendar interval
sub addIcalPageSize {
my $session = shift;
print "\tAdding iCalendar interval to Calendar... " unless $quiet;
$session->db->write(
"ALTER TABLE Calendar ADD COLUMN icalInterval BIGINT"
);
print "DONE!\n" unless $quiet;
return;
}
# --------------- DO NOT EDIT BELOW THIS LINE --------------------------------