aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-06 17:27:51 -0800
committerfriendica <info@friendica.com>2013-11-06 17:27:51 -0800
commit8b9633e46b7cdd4241e369d8f9cf10cec14956d2 (patch)
treed495b06da3f4511000813b26b785df7403063978 /install/update.php
parent310ccfda997449dcc08c0d37d194c12b6f929c6d (diff)
downloadvolse-hubzilla-8b9633e46b7cdd4241e369d8f9cf10cec14956d2.tar.gz
volse-hubzilla-8b9633e46b7cdd4241e369d8f9cf10cec14956d2.tar.bz2
volse-hubzilla-8b9633e46b7cdd4241e369d8f9cf10cec14956d2.zip
DB - allow private messages to expire
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index 53d487f91..e1fd8c7a4 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1080 );
+define( 'UPDATE_VERSION' , 1081 );
/**
*
@@ -888,3 +888,11 @@ function update_r1079() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+function update_r1080() {
+ $r = q("ALTER TABLE `mail` ADD `expires` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
+ADD INDEX ( `expires` ) ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}