Add ON DELETE CASCADE to distribution_formula_entry.formula
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 20 Mar 2009 15:21:15 +0000 (15:21 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 20 Mar 2009 15:21:15 +0000 (15:21 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12628 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/200.schema.acq.sql

index 6b82aba..565ac80 100644 (file)
@@ -285,6 +285,7 @@ CREATE TABLE acq.distribution_formula (
 CREATE TABLE acq.distribution_formula_entry (
        id                      SERIAL PRIMARY KEY,
        formula         INTEGER NOT NULL REFERENCES acq.distribution_formula(id)
+                               ON DELETE CASCADE
                                DEFERRABLE INITIALLY DEFERRED,
        position        INTEGER NOT NULL,
        item_count      INTEGER NOT NULL,