Browse Source

Bug 15478 - Checksum mismatch when regenerating schema

When regenerating the db schema on master, the script will error out
with a checksum mismatch on Borrower.pm, and also DeletedBorrower.pm

Test Plan:
1) Check out master
2) Run ./misc/devel/update_dbix_class_files.pl
3) Note the error
4) Apply this patch
5) Re-reun ./misc/devel/update_dbix_class_files.pl
6) Note there is no error

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
new_12478_elasticsearch
Kyle Hall 9 years ago
committed by Brendan A Gallagher
parent
commit
7870b4cc56
  1. 19
      Koha/Schema/Result/Borrower.pm
  2. 6
      Koha/Schema/Result/Deletedborrower.pm

19
Koha/Schema/Result/Borrower.pm

@ -865,6 +865,21 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
=head2 items_last_borrowers
Type: has_many
Related object: L<Koha::Schema::Result::ItemsLastBorrower>
=cut
__PACKAGE__->has_many(
"items_last_borrowers",
"Koha::Schema::Result::ItemsLastBorrower",
{ "foreign.borrowernumber" => "self.borrowernumber" },
{ cascade_copy => 0, cascade_delete => 0 },
);
=head2 message_queues
Type: has_many
@ -1161,8 +1176,8 @@ Composing rels: L</aqorder_users> -> ordernumber
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-21 19:50:05
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QafovaRBnm36nyoyQTGIgQ
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-01-06 11:59:52
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0nIBbkzhb+Yfp6qpSLo51A
__PACKAGE__->belongs_to(
"guarantor",

6
Koha/Schema/Result/Deletedborrower.pm

@ -557,9 +557,9 @@ __PACKAGE__->add_columns(
);
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-10-06 10:38:42
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NofxbMGIuZqlGCqvjPEI1Q
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-01-06 12:00:28
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aNmdXpOz+XN5abM67sl8uA
# You can replace this text with custom content, and it will be preserved on regeneration
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;

Loading…
Cancel
Save