diff --git a/docs/gotcha.txt b/docs/gotcha.txt index 5e562abc4..a41ca5242 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -8,6 +8,11 @@ versions. Be sure to heed the warnings contained herein as they will save you many hours of grief. +7.7.13 +-------------------------------------------------------------------- + * Due to changes in the userSession database table, you must upgrade + to 7.7.13 before upgrading to 7.7.14 or beyond. + 7.7.8 -------------------------------------------------------------------- * A basic behavior of the Inbox has been changed. If a message is diff --git a/docs/upgrades/upgrade_7.7.12-7.7.13.pl b/docs/upgrades/upgrade_7.7.12-7.7.13.pl index abc6368d2..1240485a7 100644 --- a/docs/upgrades/upgrade_7.7.12-7.7.13.pl +++ b/docs/upgrades/upgrade_7.7.12-7.7.13.pl @@ -31,6 +31,7 @@ my $quiet; # this line required my $session = start(); # this line required # upgrade functions go here +addSessionTokenId($session); finish($session); # this line required @@ -44,6 +45,16 @@ finish($session); # this line required # print "DONE!\n" unless $quiet; #} +#---------------------------------------------------------------------------- +# Describe what our function does +sub addSessionTokenId { + my $session = shift; + print "\tAdding CSRF token to session... " unless $quiet; + $session->db->write(q|ALTER TABLE userSession ADD COLUMN tokenId CHAR(22)|); + # and here's our code + print "DONE!\n" unless $quiet; +} + # -------------- DO NOT EDIT BELOW THIS LINE --------------------------------