Kashyap
2018-10-13 11:02:55 UTC
Hi
I have installed bugzilla its working fine without old database,
but when i was trying to bringup with old database i got following error
#./checksetup.pl no errors without database
but
#./checksetup.pl got errors while restoring old databse (mysql Ver 14.12
Distrib 5.0.45 to mysql Ver 15.1 Distrib 10.3.10-MariaDB )
DBD::mysql::db do failed: Can't create table `bugs`.`#sql-6684_13` (errno:
150 "Foreign key constraint is incorrectly formed") [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 667.
Bugzilla::DB::bz_add_fks('Bugzilla::DB::Mysql=HASH(0x6c14b08)',
'test_case_components', 'HASH(0x63960d8)', 'HASH(0xa0286b8)') called at
Bugzilla/DB.pm line 571
Bugzilla::DB::bz_setup_foreign_keys('Bugzilla::DB::Mysql=HASH(0x6c14b08)')
called at Bugzilla/Install/DB.pm line 748
Bugzilla::Install::DB::update_table_definitions('HASH(0x18c6100)')
called at ./checksetup.pl line 172
--
I have installed bugzilla its working fine without old database,
but when i was trying to bringup with old database i got following error
#./checksetup.pl no errors without database
but
#./checksetup.pl got errors while restoring old databse (mysql Ver 14.12
Distrib 5.0.45 to mysql Ver 15.1 Distrib 10.3.10-MariaDB )
DBD::mysql::db do failed: Can't create table `bugs`.`#sql-6684_13` (errno:
150 "Foreign key constraint is incorrectly formed") [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 667.
Bugzilla::DB::bz_add_fks('Bugzilla::DB::Mysql=HASH(0x6c14b08)',
'test_case_components', 'HASH(0x63960d8)', 'HASH(0xa0286b8)') called at
Bugzilla/DB.pm line 571
Bugzilla::DB::bz_setup_foreign_keys('Bugzilla::DB::Mysql=HASH(0x6c14b08)')
called at Bugzilla/Install/DB.pm line 748
Bugzilla::Install::DB::update_table_definitions('HASH(0x18c6100)')
called at ./checksetup.pl line 172
--