diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index 20c4a55fb..22da1c0b5 100644 --- a/Bugzilla/DB/Schema.pm +++ b/Bugzilla/DB/Schema.pm @@ -1231,7 +1231,7 @@ use constant ABSTRACT_SCHEMA => { FIELDS => [ # In a standard TheSchwartz schema, this is a BIGINT, but we # don't have those and I didn't want to add them just for this. - jobid => {TYPE => 'INTSERIAL', PRIMARYKEY => 1, NOTNULL => 1}, + jobid => {TYPE => 'INTSERIAL', PRIMARYKEY => 1, NOTNULL => 1}, funcid => {TYPE => 'INT4', NOTNULL => 1}, # In standard TheSchwartz, this is a MEDIUMBLOB. arg => {TYPE => 'LONGBLOB'}, diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index 5d36f2af1..9e2beb62a 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -700,6 +700,9 @@ WHERE description LIKE\'%[CC:%\''); # Store IDs instead of names for all select fields in bugs table _change_select_fields_to_ids(); + # _change_int_keys_to_int4 incorrectly changed ts_job.jobid column + $dbh->bz_alter_column('ts_job', jobid => {TYPE => 'INTSERIAL', PRIMARYKEY => 1, NOTNULL => 1}); + # Set MOVED resolution disabled for bugs $dbh->do('UPDATE resolution SET isactive=0 WHERE value=?', undef, 'MOVED');