aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-30 20:10:47 -0800
committerfriendica <info@friendica.com>2014-01-30 20:10:47 -0800
commita1d40431f22e82b8e018dce65ced0801c40b20ff (patch)
tree1b9fa64a689ff56a932f82428cc8cd3a1d932303 /install/update.php
parent49f07bd90f7304e76c2b06d0a9616d680df6ab47 (diff)
downloadvolse-hubzilla-a1d40431f22e82b8e018dce65ced0801c40b20ff.tar.gz
volse-hubzilla-a1d40431f22e82b8e018dce65ced0801c40b20ff.tar.bz2
volse-hubzilla-a1d40431f22e82b8e018dce65ced0801c40b20ff.zip
chat expiration (default 2 hours) - but can be set on a per-chatroom basis
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index 180b8d5a0..e8b6d37f6 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1094 );
+define( 'UPDATE_VERSION' , 1095 );
/**
*
@@ -1060,3 +1060,12 @@ function update_r1093() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+function update_r1094() {
+ $r = q("ALTER TABLE `chatroom` ADD `cr_expire` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `cr_edited` ,
+ADD INDEX ( `cr_expire` )");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+