Closed Bug 573441 Opened 14 years ago Closed 14 years ago

The attachments.ispatch column is a boolean without a DEFAULT

Categories

(Bugzilla :: Database, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.0

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file)

attachments.ispatch can be NULL, when it really should just default to FALSE.
Attached patch v1Splinter Review
A very simple patch. :-)
Assignee: database → mkanat
Status: NEW → ASSIGNED
Attachment #452679 - Flags: review?(timello)
Attachment #452679 - Flags: review?(timello) → review+
Comment on attachment 452679 [details] [diff] [review]
v1

>=== modified file 'Bugzilla/Install/DB.pm'
>@@ -616,6 +616,9 @@
>     $dbh->bz_alter_column('group_control_map', 'othercontrol',
>                           {TYPE => 'INT1', NOTNULL => 1, DEFAULT => CONTROLMAPNA});
> 
>+    $dbh->bz_alter_column('attachments', 'ispatch', 
>+        { TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'FALSE'});
>+

Nit: I noticed that you have been adding one space after the '{' and before '}' and here you are missing the last one.
Flags: approval?
Ah, thanks, I'll fix that on checkin!
Flags: approval? → approval+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/DB/Schema.pm
modified Bugzilla/Install/DB.pm
Committed revision 7228.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: