name character varying(255),
visible boolean NOT NULL,
public boolean NOT NULL,
- portfolioid integer NOT NULL,
+ portfolio integer NOT NULL,
CONSTRAINT album_pkey PRIMARY KEY (id),
- CONSTRAINT album_portfolioid_fkey FOREIGN KEY (portfolioid)
+ CONSTRAINT album_portfolio_fkey FOREIGN KEY (portfolio)
REFERENCES public.portfolio (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE
);
name character varying(255),
exif text,
format integer NOT NULL,
- albumid integer NOT NULL,
+ album integer NOT NULL,
visible boolean NOT NULL,
public boolean NOT NULL,
CONSTRAINT photo_pkey PRIMARY KEY (id),
- CONSTRAINT photo_albumid_fkey FOREIGN KEY (albumid)
+ CONSTRAINT photo_album_fkey FOREIGN KEY (album)
REFERENCES public.album (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE,
CONSTRAINT photo_format_fkey FOREIGN KEY (format)