Add tokenId column to userSession table. Doing the session code changes
and db changes at the same time creates a huge mess.
This commit is contained in:
parent
ac1272a835
commit
8383fd9935
2 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 --------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue