]> 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:24:44 +0000 (01:24 +0000)
committermkanat%kerio.com <>
Thu, 18 Aug 2005 01:24:44 +0000 (01:24 +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 60a3e8f1119d6c6c5bc7cdfac3e4aaead7828526..1b3c5d09491b966c52a0ca9e2f8cb7ef72f92ef8 100755 (executable)
@@ -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.
 #