Sunny day all!

First time I have this problem: I'm trying to upgrade a 17.05 to 24.11, but it keeps failing on constraints

Upgrade to 17.12.00.015 done (Bug 20144 - Adapt DB structure to work with new SQL modes)
{UNKNOWN}: DBI Exception: DBD::mysql::db do failed: Cannot change column 'type': used in a foreign key constraint 'koha_henryville/account_offsets_ibfk_t' of table 'koha_henryville/account_offsets'  at /usr/share/perl5/DBIx/Class/Schema.pm line 1118.
    DBIx::Class::Schema::throw_exception(Koha::Schema=HASH(0x5e4975bc04e8), "DBI Exception: DBD::mysql::db do failed: Cannot change column"...) called at /usr/share/perl5/DBIx/Class/Storage.pm line 113
    DBIx::Class::Storage::throw_exception(DBIx::Class::Storage::DBI::mysql=HASH(0x5e497aefac50), "DBI Exception: DBD::mysql::db do failed: Cannot change column"...) called at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1623
    DBIx::Class::Storage::DBI::__ANON__("DBD::mysql::db do failed: Cannot change column 'type': used i"..., DBI::db=HASH(0x5e497b75b710), undef) called at ./installer/data/mysql/updatedatabase.pl line 15545

This was an install on Debian 12 / Mariadb 10.11 with the koha-common packages, so I figured maybe some new constraints in Mariadb were in cause.  I moved the DB to a Ubuntu 22, Mariadb 10.6 with dev install but I have the same problem.  

I've never encountered it in my upgrades up to 24.05, and there's no way to skip it since it's a loop through ALL the tables to add the COLLATE, etc...

And the code starts with skipping the constraints, so I don't get it.

Any suggestion?


Best regards

--
Logo inLibro Philippe Blouin
Directeur de la technologie


833-INLIBRO (465-4276), poste 230
philippe.blouin@inLibro.com

www.inLibro.com