Commit 35e583d3 authored by Dave Lawrence's avatar Dave Lawrence

Bug 776972 - Increase bugs_activity primary key size to INTSERIAL for future growth

r/a=LpSolit
parent 3c12e5aa
...@@ -322,7 +322,7 @@ use constant ABSTRACT_SCHEMA => { ...@@ -322,7 +322,7 @@ use constant ABSTRACT_SCHEMA => {
bugs_activity => { bugs_activity => {
FIELDS => [ FIELDS => [
id => {TYPE => 'MEDIUMSERIAL', NOTNULL => 1, id => {TYPE => 'INTSERIAL', NOTNULL => 1,
PRIMARYKEY => 1}, PRIMARYKEY => 1},
bug_id => {TYPE => 'INT3', NOTNULL => 1, bug_id => {TYPE => 'INT3', NOTNULL => 1,
REFERENCES => {TABLE => 'bugs', REFERENCES => {TABLE => 'bugs',
......
...@@ -680,12 +680,17 @@ sub update_table_definitions { ...@@ -680,12 +680,17 @@ sub update_table_definitions {
# 2012-06-13 dkl@mozilla.com - Bug 764457 # 2012-06-13 dkl@mozilla.com - Bug 764457
$dbh->bz_add_column('bugs_activity', 'id', $dbh->bz_add_column('bugs_activity', 'id',
{TYPE => 'MEDIUMSERIAL', NOTNULL => 1, PRIMARYKEY => 1}); {TYPE => 'INTSERIAL', NOTNULL => 1, PRIMARYKEY => 1});
# 2012-06-13 dkl@mozilla.com - Bug 764466 # 2012-06-13 dkl@mozilla.com - Bug 764466
$dbh->bz_add_column('profiles_activity', 'id', $dbh->bz_add_column('profiles_activity', 'id',
{TYPE => 'MEDIUMSERIAL', NOTNULL => 1, PRIMARYKEY => 1}); {TYPE => 'MEDIUMSERIAL', NOTNULL => 1, PRIMARYKEY => 1});
# 2012-07-24 dkl@mozilla.com - Bug 776972
$dbh->bz_alter_column('bugs_activity', 'id',
{TYPE => 'INTSERIAL', NOTNULL => 1, PRIMARYKEY => 1});
################################################################ ################################################################
# New --TABLE-- changes should go *** A B O V E *** this point # # New --TABLE-- changes should go *** A B O V E *** this point #
################################################################ ################################################################
......
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