]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 462072: Add FK constraints to the products table - Patch by Nitish Bezzala <nbezz...
authorlpsolit%gmail.com <>
Sat, 30 May 2009 11:54:23 +0000 (11:54 +0000)
committerlpsolit%gmail.com <>
Sat, 30 May 2009 11:54:23 +0000 (11:54 +0000)
Bugzilla/DB/Schema.pm

index ad2303efc14bea0d1322e6a924e8e266ed33b5a8..825e918123800de7a6069b4166d910e9d6bc5f1a 100644 (file)
@@ -1188,7 +1188,10 @@ use constant ABSTRACT_SCHEMA => {
                                   PRIMARYKEY => 1},
             name              => {TYPE => 'varchar(64)', NOTNULL => 1},
             classification_id => {TYPE => 'INT2', NOTNULL => 1,
-                                  DEFAULT => '1'},
+                                  DEFAULT => '1',
+                                  REFERENCES => {TABLE  => 'classifications',
+                                                 COLUMN => 'id',
+                                                 DELETE => 'CASCADE'}},
             description       => {TYPE => 'MEDIUMTEXT'},
             milestoneurl      => {TYPE => 'TINYTEXT', NOTNULL => 1,
                                   DEFAULT => "''"},