From: Dave Lawrence Date: Thu, 12 Jan 2012 22:16:46 +0000 (-0500) Subject: Bug 715731 - profile_search.user_id should have a FK pointing to profiles.userid X-Git-Tag: bugzilla-4.2rc2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4206816f0392538934de85323b9f0616cd5fcd7;p=thirdparty%2Fbugzilla.git Bug 715731 - profile_search.user_id should have a FK pointing to profiles.userid r/a=LpSolit --- diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index 7b7e4ffb61..da0c7d2071 100644 --- a/Bugzilla/DB/Schema.pm +++ b/Bugzilla/DB/Schema.pm @@ -901,7 +901,10 @@ use constant ABSTRACT_SCHEMA => { profile_search => { FIELDS => [ id => {TYPE => 'INTSERIAL', NOTNULL => 1, PRIMARYKEY => 1}, - user_id => {TYPE => 'INT3', NOTNULL => 1}, + user_id => {TYPE => 'INT3', NOTNULL => 1, + REFERENCES => {TABLE => 'profiles', + COLUMN => 'userid', + DELETE => 'CASCADE'}}, bug_list => {TYPE => 'MEDIUMTEXT', NOTNULL => 1}, list_order => {TYPE => 'MEDIUMTEXT'}, ],