name varchar(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 portfolio (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE
) ENGINE = InnoDB;
name varchar(255),
exif varchar(255),
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 album (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE,
CONSTRAINT photo_format_fkey FOREIGN KEY (format)