Closed
Bug 762288
Opened 13 years ago
Closed 12 years ago
Change bugs_activity.removed to match data type of bugs_activity.added
Categories
(Bugzilla :: Database, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 4.4
People
(Reporter: dkl, Assigned: dkl)
Details
Attachments
(1 file, 1 obsolete file)
1.63 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
Currently bugs_activity.added is set to varchar(255) and bugs_activity.removed is set up as tinytext (255 chars) and the should match. added was converted few years back to make indexing for duplicates.cgi better, but removed was not changed at the time. tinytext actually will contain less that 255 chars if multibyte characters are used such as utf8. varchar(255) does not have that limitation and will still allow 255 multibyte chars.
Patch coming.
dkl
Assignee | ||
Updated•13 years ago
|
Assignee: database → dkl
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: x86_64 → All
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #630752 -
Flags: review?(LpSolit)
Comment 2•13 years ago
|
||
Comment on attachment 630752 [details] [diff] [review]
Patch to change bugs_activity.removed to varchar(255) (v1)
>=== modified file 'Bugzilla/Install/DB.pm'
>+ $dbh->bz_add_index('bugs_activity', 'bugs_activity_removed_idx', ['removed']);
There is no such index in the DB schema. Also, do we need this index for real?
Attachment #630752 -
Flags: review?(LpSolit) → review-
Updated•13 years ago
|
Severity: normal → enhancement
Target Milestone: --- → Bugzilla 4.4
Assignee | ||
Comment 3•13 years ago
|
||
Mainly I added the index for consistency and it doesn't really hurt anything to have it there. It could be useful for queries using 'changedfrom' or if some other cgi in the future similar to duplicates.cgi were to start using the 'removed' column extensively.
dkl
Attachment #630752 -
Attachment is obsolete: true
Attachment #630970 -
Flags: review?(LpSolit)
Comment 4•12 years ago
|
||
Comment on attachment 630970 [details] [diff] [review]
Patch to change bugs_activity.removed to varchar(255) (v2)
r=LpSolit
Attachment #630970 -
Flags: review?(LpSolit) → review+
Updated•12 years ago
|
Flags: approval+
Assignee | ||
Comment 5•12 years ago
|
||
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/trunk
modified Bugzilla/Install/DB.pm
modified Bugzilla/DB/Schema.pm
Committed revision 8269.
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.
Description
•