Closed Bug 715731 Opened 13 years ago Closed 12 years ago

profile_search.user_id should have a FK pointing to profiles.userid

Categories

(Bugzilla :: Database, enhancement)

4.0.3
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.2

People

(Reporter: LpSolit, Assigned: dkl)

References

Details

Attachments

(1 file)

If a user account is deleted, entries in the profile_search table should go away too, so profile_search.user_id should have a FK pointing to profiles.userid.
Depends on: 715733
This adds a foreign key relationship from profile_search to profiles on user_id which allows entries in profile_search to be removed properly when a user is deleted. I have verified the data is removed and no error is generated.

dkl
Assignee: database → dkl
Status: NEW → ASSIGNED
Attachment #587820 - Flags: review?(LpSolit)
Comment on attachment 587820 [details] [diff] [review]
Patch to add foreign key to profile_search table for user_id (v1)

Works fine. r=LpSolit
Attachment #587820 - Flags: review?(LpSolit) → review+
Flags: approval4.2+
Flags: approval+
Target Milestone: --- → Bugzilla 4.2
Flags: blocking4.2+
trunk:
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/trunk
modified Bugzilla/DB/Schema.pm
Committed revision 8079.

4.2:
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/4.2
modified Bugzilla/DB/Schema.pm
Committed revision 8008.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: