diff options
author | mkanat%kerio.com <> | 2005-09-28 01:55:24 +0200 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-09-28 01:55:24 +0200 |
commit | b56d5f6c828c6276449bc57bb31a00cebb592036 (patch) | |
tree | 16d05ff81610754183f82692974673427ffdef64 /checksetup.pl | |
parent | 616cf8b9c68eff45065a90127603d5ef5a7e112a (diff) | |
download | bugzilla-b56d5f6c828c6276449bc57bb31a00cebb592036.tar.gz bugzilla-b56d5f6c828c6276449bc57bb31a00cebb592036.tar.xz |
Bug 309760: series.public rename breaks upgrades from 2.17.1
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=joel, a=justdave
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-x | checksetup.pl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/checksetup.pl b/checksetup.pl index 2c7eca5c1..3e84e19d3 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -3917,8 +3917,12 @@ if ( $dbh->isa('Bugzilla::DB::Mysql') ) { if ( $approved_col->{TYPE_NAME} eq 'TINYINT' and $approved_col->{COLUMN_SIZE} == 1 ) { - $dbh->bz_alter_column_raw('series', 'public', - {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => '0'}); + # series.public could have been renamed to series.is_public, + # and so wouldn't need to be fixed manually. + if ($dbh->bz_column_info('series', 'public')) { + $dbh->bz_alter_column_raw('series', 'public', + {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => '0'}); + } $dbh->bz_alter_column_raw('bug_status', 'isactive', {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => '1'}); $dbh->bz_alter_column_raw('rep_platform', 'isactive', |