From e4606c00b04bb58e18fdf744567d1d329658719d Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 6 Nov 2006 22:55:38 +0000 Subject: Bug fixed: #users.auto_login_key moved to #user_infos.auto_login_key because table users does not contain information specificaly related to PhpWebGallery. With auto_login_key field in #users, external authentication won't work. Warning: when updating with subversion, you'll have to go directly to upgrade_feed.php git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1594 68402e56-0260-453c-a942-63ccdbb3a9ee --- install/db/22.9-database.php | 84 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 install/db/22.9-database.php (limited to 'install/db') diff --git a/install/db/22.9-database.php b/install/db/22.9-database.php new file mode 100644 index 000000000..7a50dbc59 --- /dev/null +++ b/install/db/22.9-database.php @@ -0,0 +1,84 @@ + $row['uid'], + 'auto_login_key' => $row['auto_login_key'], + ) + ); +} + +mass_updates( + PREFIX_TABLE.'user_infos', + array( + 'primary' => array('user_id'), + 'update' => array('auto_login_key') + ), + $datas + ); + +$query = ' +ALTER TABLE '.PREFIX_TABLE.'users + DROP COLUMN auto_login_key +;'; +pwg_query($query); + +echo +"\n" +. $upgrade_description +."\n" +; +?> -- cgit v1.2.3