Database Table Description of "files"

Name

files

Description

Purpose

Table to keep track of individual image files.

Schema

CREATE TABLE files (
        identifier integer PRIMARY KEY,
        version    integer REFERENCES photo_version(identifier) NOT NULL,
        size       integer NOT NULL,
        x_res      integer NOT NULL,
        y_res      integer NOT NULL,
        path       text NOT NULL,
        created    timestamp without time zone NOT NULL,
        filesize   integer NOT NULL,
        params     text NOT NULL,
        comments   text,
        watermark  integer REFERENCES photo_version(identifier)
);

References tables

Is referenced by tables

Related sequences

Related indexes

Related functions

None.

Related views

None.

History

Used first

Version 2.34

Used last

Still in use

Schema change history

= Version 2.34 =

--  Add a table to keep track of individual image files.
 
CREATE TABLE files (
        identifier integer PRIMARY KEY,
        version integer REFERENCES photo_version(identifier) NOT NULL,
        size integer NOT NULL,
        x_res integer NOT NULL,
        y_res integer NOT NULL,
        path text NOT NULL,
        created timestamp without time zone NOT NULL,
        filesize integer NOT NULL,
        params text NOT NULL,
        watermarked BOOLEAN NOT NULL,
        comments text
);
-- Update the files table to be smarter about watermarks
ALTER TABLE files DROP COLUMN watermarked;
ALTER TABLE files ADD COLUMN watermark integer REFERENCES photo_version(identifier);
Data change history
podoc/files_sql_table.txt · Last modified: 2007/10/19 16:48 by Luud
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0