diff --git a/webtools/bugzilla/Bugzilla/DB/Schema.pm b/webtools/bugzilla/Bugzilla/DB/Schema.pm index f86f47965c3..3e86cc50d0c 100644 --- a/webtools/bugzilla/Bugzilla/DB/Schema.pm +++ b/webtools/bugzilla/Bugzilla/DB/Schema.pm @@ -915,7 +915,8 @@ use constant ABSTRACT_SCHEMA => { DEFAULT => '0'}, onemailperbug => {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'FALSE'}, - title => {TYPE => 'varchar(128)', NOTNULL => 1}, + title => {TYPE => 'varchar(128)', NOTNULL => 1, + DEFAULT => "''"}, ], INDEXES => [ whine_queries_eventid_idx => ['eventid'], diff --git a/webtools/bugzilla/checksetup.pl b/webtools/bugzilla/checksetup.pl index 60a3e8f1119..1b3c5d09491 100755 --- a/webtools/bugzilla/checksetup.pl +++ b/webtools/bugzilla/checksetup.pl @@ -4011,6 +4011,12 @@ if (Param('defaultopsys') eq 'other') { . " uses 'Other' (capital O).\n"; } +# Add a DEFAULT to whine_queries stuff so that editwhines.cgi +# works on PostgreSQL. +$dbh->bz_alter_column('whine_queries', 'title', {TYPE => 'varchar(128)', + NOTNULL => 1, DEFAULT => "''"}); + + # If you had to change the --TABLE-- definition in any way, then add your # differential change code *** A B O V E *** this comment. #