From 79e6e7aed6713f2a2c151e7386a564c46141fbf2 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 2 Jul 2009 20:50:29 +0000 Subject: [PATCH] Remove session db based token storage. --- docs/gotcha.txt | 3 --- docs/upgrades/upgrade_7.7.12-7.7.13.pl | 13 ------------- 2 files changed, 16 deletions(-) diff --git a/docs/gotcha.txt b/docs/gotcha.txt index 4dd815ae6..09d00cd6b 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -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 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 ecc02751d..2afb1cd7a 100644 --- a/docs/upgrades/upgrade_7.7.12-7.7.13.pl +++ b/docs/upgrades/upgrade_7.7.12-7.7.13.pl @@ -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;