diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-06 20:17:21 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-06 20:17:21 +0000 |
commit | 22beb1a65d65c9c61fb5d7e181df681fb1a8849e (patch) | |
tree | fcc595461f72ca424bbe2cea557b574849c1c997 /lib/class/update.class.php | |
parent | 1d12186dba5259dfcf2d0306bb3e34d84dda5304 (diff) | |
download | ampache-22beb1a65d65c9c61fb5d7e181df681fb1a8849e.tar.gz ampache-22beb1a65d65c9c61fb5d7e181df681fb1a8849e.tar.bz2 ampache-22beb1a65d65c9c61fb5d7e181df681fb1a8849e.zip |
added paging to genre sub views, and added missing fields to the song single view
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r-- | lib/class/update.class.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php index 6f36a107..0d5bacfe 100644 --- a/lib/class/update.class.php +++ b/lib/class/update.class.php @@ -247,6 +247,11 @@ 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 />'; + +// $version[] = array('version' => '340013','description'=>$update_string) + return $version; } // populate_version @@ -1042,5 +1047,32 @@ class Update { } // update_340012 + /** + * update_340013 + * This update removes a whole bunch of preferences that are no longer + * being used in any way, and changes the ACL XML-RPC to just RPC + */ + 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'"; + $db_results = Dba::query($sql); + + $sql = "UPDATE `access_list` SET `type`='rpc' WHERE `type`='xml-rpc'"; + $db_results = Dba::query($sql); + + $sql = "SELECT `id` FROM `user`"; + $db_results = Dba::query($sql); + + User::fix_preferences('-1'); + + while ($r = Dba::fetch_assoc($db_results)) { + User::fix_preferences($r['id']); + } // while we're fixing the useres stuff + + self::set_version('db_version','340013'); + + } // update_340013 + } // end update class ?> |