升级到Bugzilla 5.0

时间:2015-07-23 19:42:33

标签: mysql perl bugzilla

在设置Bugzilla 5.0时,运行./checksetup.pl我碰到了这个美丽:

Removing existing compiled templates...
Precompiling templates...done.
Fixing file permissions...
Adding foreign key: test_case_components.component_id ->
components.id...
DBD::mysql::db do failed: Cannot add foreign key constraint [for Statement "ALTER TABLE test_case_components ADD 
 CONSTRAINT fk_test_case_components_component_id_components_id FOREIGN KEY (component_id)
 REFERENCES components(id)
  ON UPDATE CASCADE ON DELETE CASCADE"] at Bugzilla/DB.pm line 642.
Bugzilla::DB::bz_add_fks(Bugzilla::DB::Mysql=HASH(0x6c66e10), "test_case_components", HASH(0x61a5f30), HASH(0xa283c48)) called at Bugzilla/DB.pm line 546
Bugzilla::DB::bz_setup_foreign_keys(Bugzilla::DB::Mysql=HASH(0x6c66e10)) called at Bugzilla/Install/DB.pm line 745
Bugzilla::Install::DB::update_table_definitions(HASH(0x1522580)) called at ./checksetup.pl line 172

是否由于我的数据库设置?还有其他人遇到过这个吗?如果是这样,你有一个适合你的补丁吗?

1 个答案:

答案 0 :(得分:1)

See https://bugzilla.mozilla.org/show_bug.cgi?id=923865 (which an internet search engine should hopefully bring up).