Bug 37426

Summary: DBIC schema file Category.pm manually modified causes checksum mismatch and blocking refresh of that file
Product: Koha Reporter: Victor Grousset/tuxayo <victor>
Component: DatabaseAssignee: Bugs List <koha-bugs>
Status: RESOLVED WORKSFORME QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 28924    
Bug Blocks:    

Description Victor Grousset/tuxayo 2024-07-22 19:46:54 UTC
dbic complains at the end of the refresh:

DBIx::Class::Schema::Loader::make_schema_at(): Checksum mismatch in './/Koha/Schema/Result/Category.pm', the auto-generated part of the file has been modified outside of this loader.  Aborting.
If you want to overwrite these modifications, set the 'overwrite_modifications' loader option.

It seems to come from commit "Bug 28924: Add DBIC file"
Which has changes in the autogenerated section but not in the footer of that section having the checksum. Hence causing the mismatch when running `dbic`

It might have been a conflict where the resolution accidentally dropped the checksum changes. Because the rest of the changes look indeed autogenerated.
Comment 1 Katrin Fischer 2024-07-29 13:52:30 UTC
I just confirmed on main that this has been fixed. dbic command finishes without error and no changed files.
Comment 2 Victor Grousset/tuxayo 2024-08-06 15:11:30 UTC
Great, looks like it's Bug 35539.