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

index 825e918123800de7a6069b4166d910e9d6bc5f1a..583b49352f5c1c5c16bd61b8a1232f2f5e0019a0 100644 (file)
@@ -1422,7 +1422,10 @@ use constant ABSTRACT_SCHEMA => {
                               REFERENCES => {TABLE  => 'profiles',
                                              COLUMN => 'userid',
                                              DELETE => 'CASCADE'}},
-            setting_name  => {TYPE => 'varchar(32)', NOTNULL => 1},
+            setting_name  => {TYPE => 'varchar(32)', NOTNULL => 1,
+                              REFERENCES => {TABLE  => 'setting',
+                                             COLUMN => 'name',
+                                             DELETE => 'CASCADE'}},
             setting_value => {TYPE => 'varchar(32)', NOTNULL => 1},
         ],
         INDEXES => [