summaryrefslogtreecommitdiffstats
path: root/lib/class/update.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-10 06:03:47 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-10 06:03:47 +0000
commit46ffeca144b7ef44572a5805061da246c8be5f3c (patch)
tree2b338376bb6e4a77839607131c22f20e6a59cb8d /lib/class/update.class.php
parent0d2c89e90d7c64eba058ae375760a350d336578b (diff)
downloadampache-46ffeca144b7ef44572a5805061da246c8be5f3c.tar.gz
ampache-46ffeca144b7ef44572a5805061da246c8be5f3c.tar.bz2
ampache-46ffeca144b7ef44572a5805061da246c8be5f3c.zip
database update, cleaned up some stuff
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r--lib/class/update.class.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php
index 0d5bacfe..c34cd012 100644
--- a/lib/class/update.class.php
+++ b/lib/class/update.class.php
@@ -247,10 +247,12 @@ class Update {
$version[] = array('version' => '340012','description'=>$update_string);
- $update_string = '- Removed Unused Preferneces<br />' .
- '- Changed all XML-RPC acls to RPC to reflect inclusion of new API<br />';
+ $update_string = '- Removed Unused Preferneces.<br />' .
+ '- Changed Localplay Config to Localplay Access.<br />' .
+ '- Changed all XML-RPC acls to RPC to reflect inclusion of new API.<br />';
-// $version[] = array('version' => '340013','description'=>$update_string)
+ $version[] = array('version' => '340013','description'=>$update_string);
+
return $version;
@@ -1055,7 +1057,10 @@ class Update {
public static function update_340013() {
$sql = "DELETE FROM `preference` WHERE `name`='localplay_mpd_hostname' OR `name`='localplay_mpd_port' " .
- "OR `name`='direct_link' OR `name`='localplay_level' OR `name`='localplay_mpd_password'";
+ "OR `name`='direct_link' OR `name`='localplay_mpd_password' OR `name`='catalog_echo_count'";
+ $db_results = Dba::query($sql);
+
+ $sql = "UPDATE `preference` SET `description`='Localplay Access' WHERE `name`='localplay_level'";
$db_results = Dba::query($sql);
$sql = "UPDATE `access_list` SET `type`='rpc' WHERE `type`='xml-rpc'";