]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 296054: [PostgreSQL] Cannot add a new query for event/whining
authormkanat%kerio.com <>
Thu, 18 Aug 2005 01:23:21 +0000 (01:23 +0000)
committermkanat%kerio.com <>
Thu, 18 Aug 2005 01:23:21 +0000 (01:23 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave

Bugzilla/DB/Schema.pm
checksetup.pl

index f86f47965c3825ee2fa6f6bf461d155c34685798..3e86cc50d0c79b4a10d076e20c4cf54d8ca60824 100644 (file)
@@ -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'],
index 9c7a63767aa25b7f902ca42f3ddbb0783dd901c6..2075a4da04cba146f128ea4eb94432e8d64b2f09 100755 (executable)
@@ -3988,6 +3988,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.
 #