Fix ts_job.jobid

master
Vitaliy Filippov 2014-05-19 14:25:59 +04:00
parent 7c4236d2aa
commit 0765c86aac
2 changed files with 4 additions and 1 deletions

View File

@ -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'},

View File

@ -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');