From 14cf6b610fabe75f4ee7cadf2a5f60d21fbc0a13 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Tue, 21 Feb 2006 17:38:51 +0000 Subject: [PATCH] Bug 225221: The 'longdescs' table needs a primary key - Patch by Albert Ting r=mkanat a=justdave --- webtools/bugzilla/Bugzilla/DB/Schema.pm | 2 ++ webtools/bugzilla/checksetup.pl | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/webtools/bugzilla/Bugzilla/DB/Schema.pm b/webtools/bugzilla/Bugzilla/DB/Schema.pm index 3caeba707474..44f17636c012 100644 --- a/webtools/bugzilla/Bugzilla/DB/Schema.pm +++ b/webtools/bugzilla/Bugzilla/DB/Schema.pm @@ -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}, diff --git a/webtools/bugzilla/checksetup.pl b/webtools/bugzilla/checksetup.pl index f88c8bb2807a..4c1455d45fa5 100755 --- a/webtools/bugzilla/checksetup.pl +++ b/webtools/bugzilla/checksetup.pl @@ -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. #