diff options
author | friendica <info@friendica.com> | 2013-01-27 01:19:24 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-27 01:19:24 -0800 |
commit | 28ab6d5bf508120956d575e260ed2fa2b8417e59 (patch) | |
tree | 2bb7a313ecfa5d900cd6a53dfe6fe926c4b7c8e4 /install/update.php | |
parent | 22bde9b2b797f17841f0ee12df1d12ea9616216f (diff) | |
download | volse-hubzilla-28ab6d5bf508120956d575e260ed2fa2b8417e59.tar.gz volse-hubzilla-28ab6d5bf508120956d575e260ed2fa2b8417e59.tar.bz2 volse-hubzilla-28ab6d5bf508120956d575e260ed2fa2b8417e59.zip |
lostpass fixes and login/logout flow if authenticated but no default channel exists
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index 8decfc133..41c6a7565 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1021 ); +define( 'UPDATE_VERSION' , 1022 ); /** * @@ -292,3 +292,14 @@ function update_r1020() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1021() { + + $r = q("ALTER TABLE `abook` CHANGE `abook_connnected` `abook_connected` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + drop index `abook_connnected`, add index ( `abook_connected` ) "); + + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + |