Remove session db based token storage.

This commit is contained in:
Colin Kuskie 2009-07-02 20:50:29 +00:00
parent 415db65a70
commit 79e6e7aed6
2 changed files with 0 additions and 16 deletions

View file

@ -10,9 +10,6 @@ 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.
* WebGUI has allowed metadata possible values to be processed differently
by Posts than from other Assets. This causes problems when metadata is
shared between Posts and other Assets. To rememdy this, all metadata

View file

@ -31,7 +31,6 @@ my $quiet; # this line required
my $session = start(); # this line required
# upgrade functions go here
addSessionTokenId($session);
correctPostMetaData($session);
finish($session); # this line required
@ -46,18 +45,6 @@ finish($session); # this line required
# print "DONE!\n" unless $quiet;
#}
#----------------------------------------------------------------------------
sub addSessionTokenId {
my $session = shift;
print "\tAdding CSRF token to userSession, if needed... " unless $quiet;
my $sth = $session->db->read('describe userSession tokenId');
if (! defined $sth->hashRef) {
$session->db->write(q|ALTER TABLE userSession ADD COLUMN tokenId CHAR(22)|);
}
# and here's our code
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
sub correctPostMetaData {
my $session = shift;