aboutsummaryrefslogtreecommitdiffstats
path: root/install/database.sql
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/database.sql
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/database.sql')
-rw-r--r--install/database.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/install/database.sql b/install/database.sql
index acf59a36d..c773fab10 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -511,6 +511,7 @@ CREATE TABLE IF NOT EXISTS `item` (
`commented` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`received` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`changed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `comments_closed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`owner_xchan` char(255) NOT NULL DEFAULT '',
`author_xchan` char(255) NOT NULL DEFAULT '',
`source_xchan` char(255) NOT NULL DEFAULT '',
@@ -553,6 +554,8 @@ CREATE TABLE IF NOT EXISTS `item` (
KEY `received` (`received`),
KEY `uid_commented` (`uid`,`commented`),
KEY `uid_created` (`uid`,`created`),
+ KEY `changed` (`changed`),
+ KEY `comments_closed` (`comments_closed`),
KEY `aid` (`aid`),
KEY `owner_xchan` (`owner_xchan`),
KEY `author_xchan` (`author_xchan`),