Closed Bug 426688 Opened 17 years ago Closed 17 years ago

Add foreign key constraints for flags table and flagtypes table

Categories

(Bugzilla :: Database, enhancement)

3.1.3
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: tfu, Assigned: tfu)

References

(Blocks 1 open bug)

Details

(Whiteboard: [hold checkin until 3.2 branch is created])

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070510 Fedora/1.5.0.10-6.fc6 Firefox/1.5.0.10 Build Identifier: Add foreign key information for flags table and flagtypes table in Bugzilla/DB/Schema.pm file. Reproducible: Always
Attachment #313273 - Flags: review?(mkanat)
Assignee: database → tfu
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → Bugzilla 4.0
Comment on attachment 313273 [details] [diff] [review] adding foreign key constraints of flags table and flagtypes table Looks good!
Attachment #313273 - Flags: review?(mkanat) → review+
Status: NEW → ASSIGNED
Flags: approval+
Whiteboard: [hold checkin until 3.2 branch is created]
Version: unspecified → 3.1.3
I checked in all of the pending FK patches at once: Checking in Bugzilla/DB/Schema.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Schema.pm,v <-- Schema.pm new revision: 1.100; previous revision: 1.99 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
How can profiles.userid be a foreign key of flags.requestee_id? flags.requestee_id could be NULL.
Flags: needsinfo?(tfu)
Flags: needsinfo?(mkanat)
(In reply to comment #4) > How can profiles.userid be a foreign key of flags.requestee_id? > flags.requestee_id could be NULL. > > Foreign key constraint allows the referencing field (flags.requestee_id) to have NULL value as well as the values in referenced field (profiles.userid).
Flags: needsinfo?(tfu)
Flags: needsinfo?(mkanat)
Target Milestone: Bugzilla 4.0 → Bugzilla 3.4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: