aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-27 01:19:24 -0800
committerfriendica <info@friendica.com>2013-01-27 01:19:24 -0800
commit28ab6d5bf508120956d575e260ed2fa2b8417e59 (patch)
tree2bb7a313ecfa5d900cd6a53dfe6fe926c4b7c8e4 /install/update.php
parent22bde9b2b797f17841f0ee12df1d12ea9616216f (diff)
downloadvolse-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.php13
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;
+}
+