aboutsummaryrefslogtreecommitdiffstats
path: root/install/schema_mysql.sql
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-11-29 10:35:11 +0100
committerMax Kostikov <max@kostikov.co>2018-11-29 10:35:11 +0100
commit72d2fe2fd46ccd37a22b2bda8b25ab366e8ba920 (patch)
treeee5881d5037a8aef7e66f92a3f69c23b49b56095 /install/schema_mysql.sql
parent92a5b9ac41b6e60c5250307a2cd6f58802cd0fd5 (diff)
downloadvolse-hubzilla-72d2fe2fd46ccd37a22b2bda8b25ab366e8ba920.tar.gz
volse-hubzilla-72d2fe2fd46ccd37a22b2bda8b25ab366e8ba920.tar.bz2
volse-hubzilla-72d2fe2fd46ccd37a22b2bda8b25ab366e8ba920.zip
Add expires for photo
Diffstat (limited to 'install/schema_mysql.sql')
-rw-r--r--install/schema_mysql.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql
index 3e3e6fe88..49a2c476a 100644
--- a/install/schema_mysql.sql
+++ b/install/schema_mysql.sql
@@ -947,6 +947,7 @@ CREATE TABLE IF NOT EXISTS `photo` (
`resource_id` char(191) NOT NULL DEFAULT '',
`created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`edited` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `expires` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`title` char(191) NOT NULL DEFAULT '',
`description` text NOT NULL,
`album` char(191) NOT NULL DEFAULT '',
@@ -979,6 +980,7 @@ CREATE TABLE IF NOT EXISTS `photo` (
KEY `xchan` (`xchan`),
KEY `filesize` (`filesize`),
KEY `resource_id` (`resource_id`),
+ KEY `expires` (`expires`),
KEY `is_nsfw` (`is_nsfw`),
KEY `os_storage` (`os_storage`),
KEY `photo_usage` (`photo_usage`)