summaryrefslogtreecommitdiffstats
path: root/lib/class/update.class.php
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-10 05:33:57 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-10 05:33:57 +0000
commit7f3669335313adf9108119df4186a51a5f94e292 (patch)
treef8b488a09df2198723de5661b050bc31e112b7ab /lib/class/update.class.php
parentc1ed41a16dcbf1a632ad2ac99b40174628bf072e (diff)
downloadampache-7f3669335313adf9108119df4186a51a5f94e292.tar.gz
ampache-7f3669335313adf9108119df4186a51a5f94e292.tar.bz2
ampache-7f3669335313adf9108119df4186a51a5f94e292.zip
Change Browse from static to instantiable. Among other things, fixes FS#13;
probably also breaks things. Most things appear to still work, but I may have missed some cases.
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r--lib/class/update.class.php23
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
?>