Closed Bug 462070 Opened 17 years ago Closed 16 years ago

Add FK constraints to the status_workflow table

Categories

(Bugzilla :: Database, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: LpSolit, Assigned: nbezzala)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The old_status and new_status columns of the status_workflow table should point to bug_status.id. Not that old_status can be NULL. I hope this doesn't prevent to add the constraint to it.
Whiteboard: [Good Intro Bug]
I can work on this. For MySQL and Oracle, the foreign keys in the referencing table can have nulls in them, so keeping old_status NULL in any row should not be a problem.
Assignee: database → vipinhegde
Attachment #379655 - Flags: review?(LpSolit)
Attachment #379655 - Flags: review?(LpSolit) → review?(mkanat)
Attachment #379655 - Flags: review?(mkanat) → review+
Assignee: vipinhegde → nbezzala
Flags: approval+
Whiteboard: [Good Intro Bug]
Target Milestone: --- → Bugzilla 3.6
Checking in Bugzilla/DB/Schema.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Schema.pm,v <-- Schema.pm new revision: 1.119; previous revision: 1.118 done
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: