summaryrefslogtreecommitdiffstats
path: root/lib/class/update.class.php
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2011-04-02 00:22:55 -0400
committerPaul Arthur <flowerysong00@yahoo.com>2011-04-02 00:48:58 -0400
commita9da6a6fa22325ba0dfecd4d46ae23305473796f (patch)
treeacef914ee602bfeb3eed98f5f06e79603a6eb74f /lib/class/update.class.php
parent91a6eb3a682667f49122fab5d807e8650c0d3959 (diff)
downloadampache-a9da6a6fa22325ba0dfecd4d46ae23305473796f.tar.gz
ampache-a9da6a6fa22325ba0dfecd4d46ae23305473796f.tar.bz2
ampache-a9da6a6fa22325ba0dfecd4d46ae23305473796f.zip
Reworked search
Still has tentacles and should have been integrated into the existing API/Browse implementation better, but it's functional.
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r--lib/class/update.class.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php
index 0dc1f726..14478de0 100644
--- a/lib/class/update.class.php
+++ b/lib/class/update.class.php
@@ -371,6 +371,9 @@ class Update {
$update_string = '- Modify tmp_browse to allow caching of multiple browses per session.<br />';
$version[] = array('version' => '360005','description' => $update_string);
+ $update_string = '- Add table for dynamic playlists.<br />';
+ $version[] = array('version' => '360006','description' => $update_string);
+
return $version;
} // populate_version
@@ -1979,5 +1982,24 @@ class Update {
self::set_version('db_version','360005');
} // update_360005
+ /**
+ * update_360006
+ * This adds the table for newsearch/dynamic playlists
+ */
+ public static function update_360006() {
+ $sql = "CREATE TABLE `search` (
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
+ `user` int(11) NOT NULL,
+ `type` enum('private','public') CHARACTER SET utf8 DEFAULT NULL,
+ `rules` mediumtext COLLATE utf8_unicode_ci NOT NULL,
+ `name` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
+ `logic_operator` varchar(3) CHARACTER SET utf8 DEFAULT NULL,
+ PRIMARY KEY (`id`)
+ ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci";
+ $db_results = Dba::write($sql);
+
+ self::set_version('db_version','360006');
+ }
+
} // end update class
?>