Backport r9577 from trunk:
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 8 Jul 2008 17:14:08 +0000 (17:14 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 8 Jul 2008 17:14:08 +0000 (17:14 +0000)
  * Missed a deferrable constraint on asset schema

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@9991 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/040.schema.asset.sql

index ffff716..9f57c24 100644 (file)
@@ -24,7 +24,7 @@ CREATE SCHEMA asset;
 CREATE TABLE asset.copy_location (
        id              SERIAL  PRIMARY KEY,
        name            TEXT    NOT NULL,
-       owning_lib      INT     NOT NULL REFERENCES actor.org_unit (id),
+       owning_lib      INT     NOT NULL REFERENCES actor.org_unit (id) DEFERRABLE INITIALLY DEFERRED,
        holdable        BOOL    NOT NULL DEFAULT TRUE,
        opac_visible    BOOL    NOT NULL DEFAULT TRUE,
        circulate       BOOL    NOT NULL DEFAULT TRUE