X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=sql%2Fpr0n.sql;h=5f89f6c91e03c8bf62e76684a3718612d8c53218;hp=d6af63681a720d734254f157860489706fd3b68d;hb=4c67de43660ea5ee7077ab8c2c6b787471901a71;hpb=9d97b1243a78e8703fefb2a1da2794a6434912c4 diff --git a/sql/pr0n.sql b/sql/pr0n.sql index d6af636..5f89f6c 100644 --- a/sql/pr0n.sql +++ b/sql/pr0n.sql @@ -3,7 +3,6 @@ CREATE TABLE events ( "date" character varying NOT NULL, name character varying NOT NULL, vhost character varying NOT NULL, - last_update timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (vhost, event) ); @@ -13,9 +12,10 @@ CREATE TABLE last_picture_cache ( vhost varchar NOT NULL, event varchar NOT NULL, last_picture timestamp without time zone, + last_update timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (vhost,event), - FOREIGN KEY (vhost,event) REFERNECES events(vhost,event) + FOREIGN KEY (vhost,event) REFERENCES events(vhost,event) ); CREATE TABLE images ( @@ -46,7 +46,9 @@ CREATE TABLE deleted_images ( uploadedby character varying, "date" timestamp without time zone, takenby character varying NOT NULL, - selected boolean + selected boolean, + model character varying, + lens character varying ); CREATE TABLE fake_files (