Show
Ignore:
Timestamp:
05/09/08 12:31:09 (2 months ago)
Author:
dbs
Message:

Make all foreign keys deferrable, so we can DELETE and INSERT inside a transaction without constraints hobbling us

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Open-ILS/src/sql/Pg/011.schema.authority.sql

    r4794 r9542  
    2424CREATE TABLE authority.record_note ( 
    2525        id              BIGSERIAL       PRIMARY KEY, 
    26         record          BIGINT          NOT NULL REFERENCES authority.record_entry (id), 
     26        record          BIGINT          NOT NULL REFERENCES authority.record_entry (id) DEFERRABLE INITIALLY DEFERRED, 
    2727        value           TEXT            NOT NULL, 
    2828        creator         INT             NOT NULL DEFAULT 1,