Another constraint that needs to be DEFERRED INITIALLY DEFERRED
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 23 Jun 2008 03:04:30 +0000 (03:04 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 23 Jun 2008 03:04:30 +0000 (03:04 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9912 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/src/extras/import/quick_metarecord_map.sql

index 89a8364..01075b5 100644 (file)
@@ -18,7 +18,7 @@ INSERT INTO metabib.metarecord_source_map (metarecord,source)
          FROM  biblio.record_entry b
                JOIN metabib.metarecord m ON (m.fingerprint = b.fingerprint);
 
-ALTER TABLE metabib.metarecord_source_map ADD CONSTRAINT metabib_metarecord_source_map_metarecord_fkey FOREIGN KEY (metarecord) REFERENCES metabib.metarecord (id);
+ALTER TABLE metabib.metarecord_source_map ADD CONSTRAINT metabib_metarecord_source_map_metarecord_fkey FOREIGN KEY (metarecord) REFERENCES metabib.metarecord (id) DEFERRABLE INITIALLY DEFERRED;
 
 COMMIT;