diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-06 05:41:38 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-06 05:41:38 +0000 |
commit | 96334a0e8c1c59077e6f9c067dbdee14f6b07be7 (patch) | |
tree | d90cc9499bdb8bdbe2054f54805da867d97baf4b | |
parent | 7743d70c68444fc2e20a6a4aa2f9a980203b999e (diff) | |
download | ampache-96334a0e8c1c59077e6f9c067dbdee14f6b07be7.tar.gz ampache-96334a0e8c1c59077e6f9c067dbdee14f6b07be7.tar.bz2 ampache-96334a0e8c1c59077e6f9c067dbdee14f6b07be7.zip |
syncing session id alteration
-rw-r--r-- | lib/class/update.class.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php index 0f44a4b0..85f2938c 100644 --- a/lib/class/update.class.php +++ b/lib/class/update.class.php @@ -198,6 +198,8 @@ class Update { $version[] = array('version' => '340003','description' => $update_string); + $update_string = '- Alter the Session.id to be VARCHAR(64) to account for all potential configs.<br />'; + return $version; } // populate_version @@ -637,5 +639,23 @@ class Update { } // update_340003 + /** + * update_340004 + * Update the session.id to varchar(64) to handle + * newer configs + */ + public static function update_340004() { + + + /* Alter the session.id so that it's 64 */ + $sql = "ALTER TABLE `session` CHANGE `id` `id` VARCHAR( 64 ) NOT NULL"; + $db_results = Dba::query($sql); + + self::set_version('db_version','340004'); + + return true; + + } // update_340004 + } // end update class ?> |