summaryrefslogtreecommitdiffstats
path: root/lib/class/update.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-02 00:08:04 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-02 00:08:04 +0000
commitd54efca7bd1ee28683506b452f58742f8a8f678f (patch)
tree035de57f089836300d565bc6112f217a303fe55b /lib/class/update.class.php
parent4d4712f34166a9138c6c2f627187bfcccbddd169 (diff)
downloadampache-d54efca7bd1ee28683506b452f58742f8a8f678f.tar.gz
ampache-d54efca7bd1ee28683506b452f58742f8a8f678f.tar.bz2
ampache-d54efca7bd1ee28683506b452f58742f8a8f678f.zip
tweak to the preferences and the update
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r--lib/class/update.class.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php
index 067a3753..6b51527c 100644
--- a/lib/class/update.class.php
+++ b/lib/class/update.class.php
@@ -694,6 +694,15 @@ class Update {
$sql = "OPTIMIZE TABLE `album`";
$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']);
+ }
+
// Update our database version now that we are all done
self::set_version('db_version','340004');
@@ -701,5 +710,16 @@ class Update {
} // update_340004
+
+ /**
+ * update_340005
+ * This update fixes the preferences types
+ */
+ public static function update_340005() {
+
+
+
+ } // update_340005
+
} // end update class
?>