summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-10-30 21:24:54 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2013-10-30 21:33:14 -0400
commita057a9808d778efc673f05cb3570d436b093488f (patch)
treeda0dc919480f5d1709d5ea0920044ada03d40e96 /lib
parente78dfd6681e760a3a7c0e6ac1a34a667214abda7 (diff)
downloadampache-a057a9808d778efc673f05cb3570d436b093488f.tar.gz
ampache-a057a9808d778efc673f05cb3570d436b093488f.tar.bz2
ampache-a057a9808d778efc673f05cb3570d436b093488f.zip
Increase supported sessionID length
Should fix GH #74
Diffstat (limited to 'lib')
-rw-r--r--lib/class/update.class.php19
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;
+ }
+
}
?>