Closed
Bug 289455
Opened 19 years ago
Closed 19 years ago
products.classification_id has a different definition in an upgraded database than in a brand-new database
Categories
(Bugzilla :: Installation & Upgrading, defect, P1)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: mkanat, Assigned: altlist)
References
Details
Attachments
(1 file, 1 obsolete file)
915 bytes,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
The bugzilla-tip install on landfill has a classification_id with this definition, in the products table: classification_id smallint(6) default '1' Whereas the Schema creates classification_id with this definition: classification_id smallint(6) NOT NULL default '1' This only happens when we create the raw database, not when we add classifications to an old install, for some reason.
Reporter | ||
Updated•19 years ago
|
Priority: -- → P1
Target Milestone: --- → Bugzilla 2.20
Assignee | ||
Comment 1•19 years ago
|
||
Yup, adding the new field to an existing database was inconsistent.
Attachment #179970 -
Flags: review?(mkanat)
Reporter | ||
Comment 2•19 years ago
|
||
Comment on attachment 179970 [details] [diff] [review] suggested patch OK, then we also need to fix it for all the people who currently have it set incorrectly in their DB. Just a simple bz_change_field_type toward the end of the LEGACY CHECKS should do it.
Attachment #179970 -
Flags: review?(mkanat) → review-
Assignee | ||
Comment 3•19 years ago
|
||
Here's an updated patch. I'm marking it "temporary" as it will always update
the field for every checksetup.pl call. The long term fix will occur after the
DB functions can correctly tell us when a field is set to "NOT NULL".
Max writes:
> Unfortunately the DB functions are currently broken in their ability
> to tell if a field has changed or not. This will be fixed
> eventually (I'm writing entirely new functions), but for right now
> there's no way to avoid it. We need to have this change in before
> we have the patch in that fixes the problem. So I am OK with living
> with a few days of this message every time we run checksetup, on the
> tip.
Attachment #180022 -
Flags: review?(mkanat)
Assignee | ||
Updated•19 years ago
|
Attachment #179970 -
Attachment is obsolete: true
Reporter | ||
Comment 4•19 years ago
|
||
Comment on attachment 180022 [details] [diff] [review] temporary patch r=mkanat by inspection.
Attachment #180022 -
Flags: review?(mkanat) → review+
Reporter | ||
Updated•19 years ago
|
Assignee: installation → altlst
Flags: approval?
Reporter | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Comment 5•19 years ago
|
||
I don't like running this every time. :) Let's find something detectable we can tie this to before 2.20 ships. Make sure we get a bug filed on that if there isn't one already.
Flags: approval? → approval+
Reporter | ||
Comment 6•19 years ago
|
||
The repeating message will actually be solved by bug 285111, as will any and all repeating messages of this type, because the installation checks will become accurate. Checking in checksetup.pl; /cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v <-- checksetup.pl new revision: 1.390; previous revision: 1.389 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•