summaryrefslogtreecommitdiffstats
path: root/lib/class/update.class.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2011-05-31 23:08:06 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2011-05-31 23:08:06 -0400
commit998f74ac714121c8d1b321623c379d22bdf71597 (patch)
tree9f7f699d525f94966eeb0715a770055611a1bb7f /lib/class/update.class.php
parent05c29e70e11a6736dda19748af242c55b3747c11 (diff)
downloadampache-998f74ac714121c8d1b321623c379d22bdf71597.tar.gz
ampache-998f74ac714121c8d1b321623c379d22bdf71597.tar.bz2
ampache-998f74ac714121c8d1b321623c379d22bdf71597.zip
Make require_session work with local auth.
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r--lib/class/update.class.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php
index de27087d..5f48804a 100644
--- a/lib/class/update.class.php
+++ b/lib/class/update.class.php
@@ -365,6 +365,9 @@ class Update {
$update_string = '- Add table for dynamic playlists.<br />';
$version[] = array('version' => '360006','description' => $update_string);
+ $update_string = '- Add local auth method to session.type.<br />';
+ $version[] = array('version' => '360007','description' => $update_string);
+
return $version;
} // populate_version
@@ -1992,5 +1995,15 @@ class Update {
self::set_version('db_version','360006');
}
+ /**
+ * update_360007
+ * This fixes the session table
+ */
+ public static function update_360007() {
+ $sql = "ALTER TABLE `session` MODIFY `type` ENUM ('mysql','ldap','http','api','xml-rpc','local') NOT NULL";
+ $db_results = Dba::write($sql);
+ self::set_version('db_version','360007');
+ }
+
} // end update class
?>