Bug 37426 - DBIC schema file Category.pm manually modified causes checksum mismatch and blocking refresh of that file
Summary: DBIC schema file Category.pm manually modified causes checksum mismatch and b...
Status: RESOLVED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Database (show other bugs)
Version: Main
Hardware: All All
: P5 - low major
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 28924
Blocks:
  Show dependency treegraph
 
Reported: 2024-07-22 19:46 UTC by Victor Grousset/tuxayo
Modified: 2024-08-06 15:11 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.