Show
Ignore:
Timestamp:
05/09/08 12:31:09 (5 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/1.2.1-1.2.2-upgrade-db.sql

    r9506 r9542  
    171171    id          SERIAL  PRIMARY KEY, 
    172172    active      BOOL    NOT NULL DEFAULT TRUE, 
    173     field       INT     NOT NULL REFERENCES config.metabib_field (id), 
     173    field       INT     NOT NULL REFERENCES config.metabib_field (id) DEFERRABLE INITIALLY DEFERRED, 
    174174    bump_type   TEXT    NOT NULL CHECK (bump_type IN ('word_order','first_word','full_match')), 
    175175    multiplier  NUMERIC NOT NULL DEFAULT 1.0