]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 350244: profiles.disabledtext has its definition changed every time checksetup...
authormkanat%bugzilla.org <>
Sat, 26 Aug 2006 06:22:29 +0000 (06:22 +0000)
committermkanat%bugzilla.org <>
Sat, 26 Aug 2006 06:22:29 +0000 (06:22 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=myk

Bugzilla/Install/DB.pm

index adf5b7c302ca4a892ac9979078435bed0a4f4a9c..09aa5c32326bc6ce23424938c06b2cc8f0f4b1ae 100644 (file)
@@ -231,8 +231,11 @@ sub update_table_definitions {
 
     _update_bugs_activity_to_only_record_changes();
 
-    $dbh->bz_alter_column("profiles", "disabledtext",
-                          {TYPE => 'MEDIUMTEXT', NOTNULL => 1}, '');
+    # bug 90933: Make disabledtext NOT NULL
+    if (!$dbh->bz_column_info('profiles', 'disabledtext')->{NOTNULL}) {
+        $dbh->bz_alter_column("profiles", "disabledtext",
+                              {TYPE => 'MEDIUMTEXT', NOTNULL => 1}, '');
+    }
 
     $dbh->bz_add_column("bugs", "reporter_accessible",
                         {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'TRUE'});