]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
[SCHEMA CHANGE] Bug 220232: short_desc field in the bugs table is no longer allowed...
authorjustdave%syndicomm.com <>
Sun, 22 Feb 2004 11:03:46 +0000 (11:03 +0000)
committerjustdave%syndicomm.com <>
Sun, 22 Feb 2004 11:03:46 +0000 (11:03 +0000)
r= bbaetz, a= justdave

checksetup.pl

index 2a24ad03c6c85388ca121883f5b41b89a106e833..74151d87cd61f4e4a85c6df6ef147a8c5d830fde 100755 (executable)
@@ -1587,7 +1587,7 @@ $table{bugs} =
     bug_status enum("UNCONFIRMED", "NEW", "ASSIGNED", "REOPENED", "RESOLVED", "VERIFIED", "CLOSED") not null,
     creation_ts datetime not null,
     delta_ts timestamp not null,
-    short_desc mediumtext,
+    short_desc mediumtext not null,
     op_sys enum($my_opsys) not null,
     priority enum($my_priorities) not null,
     product_id smallint not null,
@@ -4159,7 +4159,7 @@ if (TableExists('shadowlog')) {
     $dbh->do("DROP TABLE shadowlog");
 }
 
-# 2003-04-XX - bugzilla@chimpychompy.org (GavinS)
+# 2003-04-27 - bugzilla@chimpychompy.org (GavinS)
 #
 # Bug 180086 (http://bugzilla.mozilla.org/show_bug.cgi?id=180086)
 #
@@ -4175,6 +4175,12 @@ if (GetFieldDef('votes', 'count')) {
     RenameField ('votes', 'count', 'vote_count');
 }
 
+# 2004/02/15 - Summaries shouldn't be null - see bug 220232
+if (GetFieldDef('bugs', 'short_desc')->[2]) { # if it allows nulls
+    $dbh->do("UPDATE bugs SET short_desc = '' WHERE short_desc IS NULL");
+    ChangeFieldType('bugs', 'short_desc', 'mediumtext not null');
+}
+
 #
 # Final checks...