]> git.sesse.net Git - pr0n/blobdiff - sql/pr0n.sql
Add model/lens fields to the images table, and make upgrade code to populate
[pr0n] / sql / pr0n.sql
index 5fd04e7e9da4872719e7b1cbe9eaf257b0d53077..d6af63681a720d734254f157860489706fd3b68d 100644 (file)
@@ -29,6 +29,8 @@ CREATE TABLE images (
     "date" timestamp without time zone,
     takenby character varying NOT NULL,
     selected boolean DEFAULT false,
+    model character varying,
+    lens character varying,
 
     FOREIGN KEY (vhost,event) REFERENCES events (vhost,event)
 );
@@ -71,6 +73,8 @@ CREATE TABLE users (
     vhost character varying NOT NULL
 );
 
+-- Mainly used for manual queries -- usually too slow to be very useful
+-- for web views in the long run.
 CREATE TABLE exif_info (
     image integer NOT NULL REFERENCES images (id) ON DELETE CASCADE,
     key varchar NOT NULL,