Closed
Bug 469793
Opened 17 years ago
Closed 17 years ago
[MySQL] In MySQL 5, columns sometimes have defaults that have no defaults in the Schema
Categories
(Bugzilla :: Database, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.4
People
(Reporter: mkanat, Assigned: mkanat)
Details
Attachments
(1 file)
|
3.00 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
The current checksetup-landfill test is failing with a lot of differences like this:
- `grantor_id` mediumint(9) NOT NULL default '0'
+ `grantor_id` mediumint(9) NOT NULL
When you import an old DB into MySQL 5, some columns contain defaults when they shouldn't--I think this is because old MySQLs always had defaults on columns. We should remove defaults from columns that aren't supposed to have them, on an upgrade.
| Assignee | ||
Comment 1•17 years ago
|
||
Okay, this fixes it. We remove defaults from columns that shouldn't have them, if we're on MySQL 5 and bugs.assigned_to has a default (which is the oldest column that could have this problem).
| Assignee | ||
Updated•17 years ago
|
Attachment #353191 -
Attachment description: 1 → v1
| Assignee | ||
Comment 2•17 years ago
|
||
Okay, tests should pass now.
Checking in Bugzilla/DB/Mysql.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Mysql.pm,v <-- Mysql.pm
new revision: 1.70; previous revision: 1.69
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: approval+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•