diff options
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r-- | lib/class/update.class.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php index 80192049..e86c20ef 100644 --- a/lib/class/update.class.php +++ b/lib/class/update.class.php @@ -344,6 +344,9 @@ class Update { $update_string = '- Add uniqueness constraint to ratings.<br />'; $version[] = array('version' => '360004','description' => $update_string); + $update_string = '- Modify tmp_browse to allow caching of multiple browses per session.<br />'; + $version[] = array('version' => '360005','description' => $update_string); + return $version; } // populate_version @@ -1929,5 +1932,25 @@ class Update { self::set_version('db_version','360004'); } // update_360004 + /** + * update_360005 + * This changes the tmp_browse table around. + */ + public static function update_360005() { + $sql = "DROP TABLE `tmp_browse`"; + $db_results = Dba::write($sql); + + $sql = "CREATE TABLE `tmp_browse` (" . + "`id` int(13) NOT NULL auto_increment," . + "`sid` varchar(128) character set utf8 NOT NULL default ''," . + "`data` longtext collate utf8_unicode_ci NOT NULL," . + "`object_data` longtext collate utf8_unicode_ci," . + "PRIMARY KEY (`sid`,`id`)" . + ") ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"; + $db_results = Dba::write($sql); + + self::set_version('db_version','360005'); + } // update_360005 + } // end update class ?> |