aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-28 16:56:13 -0700
committerfriendica <info@friendica.com>2014-08-28 16:56:13 -0700
commit53b5cf7f507df53d3e382b6714caacf9551ed6db (patch)
tree58a0ca038fc7db0f3a2218559bee219cf0b34fa1 /install/update.php
parentf526a10f07086ffeb5018b913916827a556f2fa1 (diff)
downloadvolse-hubzilla-53b5cf7f507df53d3e382b6714caacf9551ed6db.tar.gz
volse-hubzilla-53b5cf7f507df53d3e382b6714caacf9551ed6db.tar.bz2
volse-hubzilla-53b5cf7f507df53d3e382b6714caacf9551ed6db.zip
Ability to close comments at a certain date/time - needed for loom.io emulation (and many other uses)
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 5319942ee..92cb200a3 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1127 );
+define( 'UPDATE_VERSION' , 1128 );
/**
*
@@ -1440,3 +1440,11 @@ ADD INDEX ( `convid` )");
}
+function update_r1127() {
+ $r = q("ALTER TABLE `item` ADD `comments_closed` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `changed` ,
+ADD INDEX ( `comments_closed` ), ADD INDEX ( `changed` ) ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+
+}