我已经安装了几年的 Bugzilla 没有升级。我使用的版本是 3.6.12。今天我尝试将它升级到最新版本 4.4 但失败了。我按照说明使用 bzr 升级 Bugzilla。当我运行 checksetup.pl 时,它给了我这个:
Updating column setter_id in table flags ...
Old: mediumint
New: mediumint NOT NULL
Updating column setter_id in table flags ...
Old: mediumint
New: mediumint NOT NULL
DBD::mysql::db do failed: Cannot change column 'setter_id': used in a foreign key constraint 'fk_flags_setter_id_profiles_userid' [for Statement "ALTER TABLE flags CHANGE COLUMN setter_id setter_id mediumint NOT NULL"] at Bugzilla/DB.pm line 710.
Bugzilla::DB::bz_alter_column_raw('Bugzilla::DB::Mysql=HASH(0x8663790)', 'flags', 'setter_id', 'HASH(0xc9c8cd8)', 'HASH(0xc9c8ff0)', undef) called at Bugzilla/DB.pm line 669
Bugzilla::DB::bz_alter_column('Bugzilla::DB::Mysql=HASH(0x8663790)', 'flags', 'setter_id', 'HASH(0xc9c8cd8)') called at Bugzilla/Install/DB.pm line 627
Bugzilla::Install::DB::update_table_definitions('HASH(0x3050880)') called at C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\Bugzilla-bzr\checksetup.pl line 169
我不擅长 Perl 和数据库。我不知道这是什么意思。谁能帮我一把?先感谢您。