From: Dagfinn Ilmari Mannsåker Date: Mon, 22 Aug 2011 10:18:10 +0000 (+0100) Subject: Add unique constraints on columns referenced by foreign keys X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-DBIx-Class-ResultSet-RecursiveUpdate;a=commitdiff_plain;h=45d3acef815c1fb052b317bc81bb7470a34cde30;hp=45d3acef815c1fb052b317bc81bb7470a34cde30 Add unique constraints on columns referenced by foreign keys PostgreSQL correctly throws an error if you try to create a foreign key and there isn't a unique constraint on the referenced columns, since it could end up referencing multiple rows. ---