X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=sql%2Fpr0n.sql;h=5f89f6c91e03c8bf62e76684a3718612d8c53218;hp=7ce156a30a4ad2f7912f366414d68ee11b5d213c;hb=3bde4ccddbb9473fff56752d7100332d48affa1a;hpb=44c1611c549b7987e2394988e6bc66b1ad72d203 diff --git a/sql/pr0n.sql b/sql/pr0n.sql index 7ce156a..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,6 +12,7 @@ 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) REFERENCES events(vhost,event)