Commit af703f64 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 225221: The 'longdescs' table needs a primary key - Patch by Albert Ting…

Bug 225221: The 'longdescs' table needs a primary key - Patch by Albert Ting <altlst@sonic.net> r=mkanat a=justdave
parent 22c14103
......@@ -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},
......
......@@ -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.
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment