mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-06 03:49:56 +02:00
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.
This commit is contained in:
parent
c1ed41a16d
commit
7f36693353
39 changed files with 754 additions and 673 deletions
|
@ -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
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue