diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-10-30 21:24:54 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-10-30 21:33:14 -0400 |
commit | a057a9808d778efc673f05cb3570d436b093488f (patch) | |
tree | da0dc919480f5d1709d5ea0920044ada03d40e96 /lib/class | |
parent | e78dfd6681e760a3a7c0e6ac1a34a667214abda7 (diff) | |
download | ampache-a057a9808d778efc673f05cb3570d436b093488f.tar.gz ampache-a057a9808d778efc673f05cb3570d436b093488f.tar.bz2 ampache-a057a9808d778efc673f05cb3570d436b093488f.zip |
Increase supported sessionID length
Should fix GH #74
Diffstat (limited to 'lib/class')
-rw-r--r-- | lib/class/update.class.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php index 76170c16..0a5afcd7 100644 --- a/lib/class/update.class.php +++ b/lib/class/update.class.php @@ -284,6 +284,9 @@ class Update { $update_string = '- Update stream_playlist table to address performance issues.<br />'; $version[] = array('version' => '360013', 'description' => $update_string); + $update_string = '- Increase the length of sessionids again.<br />'; + $version[] = array('version' => '360014', 'description' => $update_string); + return $version; } @@ -1461,5 +1464,21 @@ class Update { public static function update_360013() { return Dba::write('ALTER TABLE `stream_playlist` ENGINE=MyISAM'); } + + /** + * update_360014 + * + * PHP session IDs are an ever-growing beast. + */ + public static function update_360014() { + $retval = true; + + $retval = Dba::write('ALTER TABLE `stream_playlist` CHANGE `sid` `sid` VARCHAR(256)') ? $retval : false; + $retval = Dba::write('ALTER TABLE `tmp_playlist` CHANGE `session` `session` VARCHAR(256)') ? $retval : false; + $retval = Dba::write('ALTER TABLE `session` CHANGE `id` `id` VARCHAR(256) NOT NULL') ? $retval : false; + + return $retval; + } + } ?> |