]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 225221: The 'longdescs' table needs a primary key - Patch by Albert Ting <altlst...
authorlpsolit%gmail.com <>
Wed, 22 Feb 2006 01:38:51 +0000 (01:38 +0000)
committerlpsolit%gmail.com <>
Wed, 22 Feb 2006 01:38:51 +0000 (01:38 +0000)
Bugzilla/DB/Schema.pm
checksetup.pl

index 3caeba7074741b9ca2cffa0b855bbaab7560024f..44f17636c0122f0b12312652f048ac4a6eb41118 100644 (file)
@@ -256,6 +256,8 @@ use constant ABSTRACT_SCHEMA => {
 
     longdescs => {
         FIELDS => [
+            comment_id      => {TYPE => 'MEDIUMSERIAL',  NOTNULL => 1,
+                                PRIMARYKEY => 1},
             bug_id          => {TYPE => 'INT3',  NOTNULL => 1},
             who             => {TYPE => 'INT3', NOTNULL => 1},
             bug_when        => {TYPE => 'DATETIME', NOTNULL => 1},
index f88c8bb2807a70751feb32b197feddd145548022..4c1455d45fa5f4c02eb0db277e76132cc388106b 100755 (executable)
@@ -4270,6 +4270,10 @@ $dbh->bz_add_column('fielddefs', 'type',
 $dbh->bz_add_column('fielddefs', 'custom',
                     { TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'FALSE' });
 
+# 2005-12-07 altlst@sonic.net -- Bug 225221
+$dbh->bz_add_column('longdescs', 'comment_id',
+                    {TYPE => 'MEDIUMSERIAL', NOTNULL => 1, PRIMARYKEY => 1});
+
 # If you had to change the --TABLE-- definition in any way, then add your
 # differential change code *** A B O V E *** this comment.
 #