From 998f74ac714121c8d1b321623c379d22bdf71597 Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Tue, 31 May 2011 23:08:06 -0400 Subject: Make require_session work with local auth. --- lib/class/update.class.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/class/update.class.php') 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.
'; $version[] = array('version' => '360006','description' => $update_string); + $update_string = '- Add local auth method to session.type.
'; + $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 ?> -- cgit