diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2012-02-21 00:08:20 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2012-02-21 00:08:20 -0500 |
commit | e9e350b71e735c8126ac280b7002ebe73d9384bc (patch) | |
tree | ca917a4014c8098b9b9edc4bb25e22dfb8556117 /lib/class/update.class.php | |
parent | 18314188c1cabbfe02d0ec8a73b8ade6ab01f03f (diff) | |
download | ampache-e9e350b71e735c8126ac280b7002ebe73d9384bc.tar.gz ampache-e9e350b71e735c8126ac280b7002ebe73d9384bc.tar.bz2 ampache-e9e350b71e735c8126ac280b7002ebe73d9384bc.zip |
Lengthen varchar for `tmp_playlist`.`session`
Sessions can be longer than 32 characters. Bump to 64.
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r-- | lib/class/update.class.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php index a03cb6d1..a8d6d5e5 100644 --- a/lib/class/update.class.php +++ b/lib/class/update.class.php @@ -371,6 +371,9 @@ class Update { $update_string = '- Verify remote_username and remote_password were added correctly to catalog table.<br />'; $version[] = array('version' => '360008','description' => $update_string); + $update_string = '- Allow long sessionids in tmp_playlist table.<br />'; + $version[] = array('version' => '360009', 'description' => $update_string); + return $version; } // populate_version @@ -2043,5 +2046,18 @@ class Update { } // update_360008 + + /** + * update_360009 + * The main session table was already updated to use varchar(64) for the ID, + * tmp_playlist needs the same change + */ + public static function update_360009() { + $sql = "ALTER TABLE `tmp_playlist` CHANGE `session` `session` VARCHAR(64)"; + $db_results = Dba::write($sql); + + self::set_version('db_version','360009'); + } + } // end update class ?> |