Show
Ignore:
Timestamp:
05/09/08 12:34:30 (5 months ago)
Author:
dbs
Message:

Merge rev. 9542 from trunk: add deferrable to all FKs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/rel_1_2/Open-ILS/src/sql/Pg/reporter-schema.sql

    r9475 r9543  
    5252        description     TEXT                            NOT NULL, 
    5353        data            TEXT                            NOT NULL, 
    54         folder          INT                             NOT NULL REFERENCES reporter.template_folder (id) 
     54        folder          INT                             NOT NULL REFERENCES reporter.template_folder (id) DEFERRABLE INITIALLY DEFERRED 
    5555); 
    5656CREATE INDEX rpt_tmpl_owner_idx ON reporter.template (owner); 
     
    6666        template        INT                             NOT NULL REFERENCES reporter.template (id) DEFERRABLE INITIALLY DEFERRED, 
    6767        data            TEXT                            NOT NULL, 
    68         folder          INT                             NOT NULL REFERENCES reporter.report_folder (id), 
     68        folder          INT                             NOT NULL REFERENCES reporter.report_folder (id) DEFERRABLE INITIALLY DEFERRED, 
    6969        recur           BOOL                            NOT NULL DEFAULT FALSE, 
    7070        recurance       INTERVAL 
     
    7777        id              SERIAL                          PRIMARY KEY, 
    7878        report          INT                             NOT NULL REFERENCES reporter.report (id) DEFERRABLE INITIALLY DEFERRED, 
    79         folder          INT                             NOT NULL REFERENCES reporter.output_folder (id), 
     79        folder          INT                             NOT NULL REFERENCES reporter.output_folder (id) DEFERRABLE INITIALLY DEFERRED, 
    8080        runner          INT                             NOT NULL REFERENCES actor.usr (id) DEFERRABLE INITIALLY DEFERRED, 
    8181        run_time        TIMESTAMP WITH TIME ZONE        NOT NULL DEFAULT NOW(),