From 99d90eaaad1231c9bad309fec90942e4c493c879 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Sat, 5 Nov 2005 12:15:57 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20305927:=20[PostgreSQL]=20Adding=20a=20new?= =?UTF-8?q?=20product=20partly=20fails=20when=20'makeproductgroups'=20is?= =?UTF-8?q?=20enabled=20-=20Patch=20by=20Fr=EF=BF=BDd=EF=BF=BDric=20Buclin?= =?UTF-8?q?=20=20r=3Dmkanat=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webtools/bugzilla/Bugzilla/DB/Schema.pm | 3 ++- webtools/bugzilla/checksetup.pl | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/webtools/bugzilla/Bugzilla/DB/Schema.pm b/webtools/bugzilla/Bugzilla/DB/Schema.pm index 5ffb41216ef..38946226330 100644 --- a/webtools/bugzilla/Bugzilla/DB/Schema.pm +++ b/webtools/bugzilla/Bugzilla/DB/Schema.pm @@ -717,7 +717,8 @@ use constant ABSTRACT_SCHEMA => { description => {TYPE => 'TEXT', NOTNULL => 1}, isbuggroup => {TYPE => 'BOOLEAN', NOTNULL => 1}, last_changed => {TYPE => 'DATETIME', NOTNULL => 1}, - userregexp => {TYPE => 'TINYTEXT', NOTNULL => 1}, + userregexp => {TYPE => 'TINYTEXT', NOTNULL => 1, + DEFAULT => "''"}, isactive => {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'TRUE'}, ], diff --git a/webtools/bugzilla/checksetup.pl b/webtools/bugzilla/checksetup.pl index 84c94f10811..16edfae3d8c 100755 --- a/webtools/bugzilla/checksetup.pl +++ b/webtools/bugzilla/checksetup.pl @@ -4059,6 +4059,11 @@ $dbh->bz_add_column('attachments', 'isurl', $dbh->bz_add_column('namedqueries', 'query_type', {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 0}); +# 2005-11-04 LpSolit@gmail.com - Bug 305927 +$dbh->bz_alter_column('groups', 'userregexp', + {TYPE => 'TINYTEXT', 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. #