aboutsummaryrefslogtreecommitdiffstats
path: root/install/schema_postgres.sql
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2018-12-02 19:33:54 +0100
committerM. Dent <dentm42@gmail.com>2018-12-02 19:33:54 +0100
commit0b38ab259c6179fc3465efe2a1ed721a73311ba8 (patch)
treed1cd6fca0a88c11782b4376faec133a1c2812bf2 /install/schema_postgres.sql
parent237c6eed5024d2507630f2321218685b3540c957 (diff)
parent2a57e00cb4a7dada0993e91e0e2176ad335cf12f (diff)
downloadvolse-hubzilla-0b38ab259c6179fc3465efe2a1ed721a73311ba8.tar.gz
volse-hubzilla-0b38ab259c6179fc3465efe2a1ed721a73311ba8.tar.bz2
volse-hubzilla-0b38ab259c6179fc3465efe2a1ed721a73311ba8.zip
Merge branch 'photocache' into 'dev'
Add Photo Cache addon support See merge request hubzilla/core!1412
Diffstat (limited to 'install/schema_postgres.sql')
-rw-r--r--install/schema_postgres.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql
index 44f98b944..1b6cab51b 100644
--- a/install/schema_postgres.sql
+++ b/install/schema_postgres.sql
@@ -928,6 +928,7 @@ CREATE TABLE "photo" (
"resource_id" text NOT NULL,
"created" timestamp NOT NULL,
"edited" timestamp NOT NULL,
+ "expires" timestamp NOT NULL,
"title" text NOT NULL,
"description" text NOT NULL,
"album" text NOT NULL,
@@ -961,6 +962,7 @@ create index "photo_aid" on photo ("aid");
create index "photo_xchan" on photo ("xchan");
create index "photo_filesize" on photo ("filesize");
create index "photo_resource_id" on photo ("resource_id");
+create index "photo_expires_idx" on photo ("expires");
create index "photo_usage" on photo ("photo_usage");
create index "photo_is_nsfw" on photo ("is_nsfw");
create index "photo_os_storage" on photo ("os_storage");