]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 409593: namedqueries.query_type has the wrong definition in DB::Schema
authormkanat%bugzilla.org <>
Sun, 23 Dec 2007 11:12:04 +0000 (11:12 +0000)
committermkanat%bugzilla.org <>
Sun, 23 Dec 2007 11:12:04 +0000 (11:12 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat

Bugzilla/DB/Schema.pm
Bugzilla/Install/DB.pm

index 3d7f56674a8fe071371869c243af0df5b53f6bc5..2f7df56c18faab00d1aa242c3e7080856fa0ee5b 100644 (file)
@@ -783,7 +783,7 @@ use constant ABSTRACT_SCHEMA => {
                                             DELETE => 'CASCADE'}},
             name         => {TYPE => 'varchar(64)', NOTNULL => 1},
             query        => {TYPE => 'LONGTEXT', NOTNULL => 1},
-            query_type   => {TYPE => 'BOOLEAN', NOTNULL => 1},
+            query_type   => {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 0},
         ],
         INDEXES => [
             namedqueries_userid_idx => {FIELDS => [qw(userid name)],
index 43c81d1dd98a3a867fdf9bea65ee96bf451fa51d..e9ce742d82869fadd40f0955d850f92193e62661 100644 (file)
@@ -521,6 +521,10 @@ sub update_table_definitions {
     # 2007-09-09 LpSolit@gmail.com - Bug 99215
     _fix_attachment_modification_date();
 
+    # This had the wrong definition in DB::Schema.
+    $dbh->bz_alter_column('namedqueries', 'query_type',
+                          {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 0});
+
     ################################################################
     # New --TABLE-- changes should go *** A B O V E *** this point #
     ################################################################