target_milestone => {TYPE => 'varchar(20)',
NOTNULL => 1, DEFAULT => "'---'"},
qa_contact => {TYPE => 'INT3', NOTNULL => 1},
- status_whiteboard => {TYPE => 'MEDIUMTEXT', NOTNULL => 1},
- votes => {TYPE => 'INT3', NOTNULL => 1},
+ status_whiteboard => {TYPE => 'MEDIUMTEXT', NOTNULL => 1,
+ DEFAULT => "''"},
+ votes => {TYPE => 'INT3', NOTNULL => 1,
+ DEFAULT => '0'},
# Note: keywords field is only a cache; the real data
# comes from the keywords table
- keywords => {TYPE => 'MEDIUMTEXT', NOTNULL => 1},
+ keywords => {TYPE => 'MEDIUMTEXT', NOTNULL => 1,
+ DEFAULT => "''"},
lastdiffed => {TYPE => 'DATETIME', NOTNULL => 1},
everconfirmed => {TYPE => 'BOOLEAN', NOTNULL => 1},
reporter_accessible => {TYPE => 'BOOLEAN',
}
+$dbh->bz_change_field_type('bugs', 'status_whiteboard',
+ q{mediumtext not null default ''});
+$dbh->bz_change_field_type('bugs', 'keywords',
+ q{mediumtext not null default ''});
+$dbh->bz_change_field_type('bugs', 'votes', 'mediumint not null default 0');
+
# If you had to change the --TABLE-- definition in any way, then add your
# differential change code *** A B O V E *** this comment.
#