Commit d11ebe02 authored by mkanat%kerio.com's avatar mkanat%kerio.com

Bug 296054: [PostgreSQL] Cannot add a new query for event/whining

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave
parent d8000a59
...@@ -915,7 +915,8 @@ use constant ABSTRACT_SCHEMA => { ...@@ -915,7 +915,8 @@ use constant ABSTRACT_SCHEMA => {
DEFAULT => '0'}, DEFAULT => '0'},
onemailperbug => {TYPE => 'BOOLEAN', NOTNULL => 1, onemailperbug => {TYPE => 'BOOLEAN', NOTNULL => 1,
DEFAULT => 'FALSE'}, DEFAULT => 'FALSE'},
title => {TYPE => 'varchar(128)', NOTNULL => 1}, title => {TYPE => 'varchar(128)', NOTNULL => 1,
DEFAULT => "''"},
], ],
INDEXES => [ INDEXES => [
whine_queries_eventid_idx => ['eventid'], whine_queries_eventid_idx => ['eventid'],
......
...@@ -4011,6 +4011,12 @@ if (Param('defaultopsys') eq 'other') { ...@@ -4011,6 +4011,12 @@ if (Param('defaultopsys') eq 'other') {
. " uses 'Other' (capital O).\n"; . " 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 # If you had to change the --TABLE-- definition in any way, then add your
# differential change code *** A B O V E *** this comment. # differential change code *** A B O V E *** this comment.
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment