Bugzilla – Attachment 185629 Details for
Bug 37901
Add ILL pseudonymization
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37901: Fix schema files
Bug-37901-Fix-schema-files.patch (text/plain), 3.48 KB, created by
Pedro Amorim
on 2025-08-21 15:49:46 UTC
(
hide
)
Description:
Bug 37901: Fix schema files
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2025-08-21 15:49:46 UTC
Size:
3.48 KB
patch
obsolete
>From 808b97cec96bc51172624acf6d2aa4f13938d0cc Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@openfifth.co.uk> >Date: Thu, 21 Aug 2025 15:48:55 +0000 >Subject: [PATCH] Bug 37901: Fix schema files > >prove t/db_dependent/Koha/Pseudonymization.t >--- > ...ibute.pm => PseudonymizedMetadataValue.pm} | 52 ++++++++----------- > 1 file changed, 23 insertions(+), 29 deletions(-) > rename Koha/Schema/Result/{PseudonymizedBorrowerAttribute.pm => PseudonymizedMetadataValue.pm} (57%) > >diff --git a/Koha/Schema/Result/PseudonymizedBorrowerAttribute.pm b/Koha/Schema/Result/PseudonymizedMetadataValue.pm >similarity index 57% >rename from Koha/Schema/Result/PseudonymizedBorrowerAttribute.pm >rename to Koha/Schema/Result/PseudonymizedMetadataValue.pm >index aad49c0dbea..571c45f2d79 100644 >--- a/Koha/Schema/Result/PseudonymizedBorrowerAttribute.pm >+++ b/Koha/Schema/Result/PseudonymizedMetadataValue.pm >@@ -1,12 +1,12 @@ > use utf8; >-package Koha::Schema::Result::PseudonymizedBorrowerAttribute; >+package Koha::Schema::Result::PseudonymizedMetadataValue; > > # Created by DBIx::Class::Schema::Loader > # DO NOT MODIFY THE FIRST PART OF THIS FILE > > =head1 NAME > >-Koha::Schema::Result::PseudonymizedBorrowerAttribute >+Koha::Schema::Result::PseudonymizedMetadataValue > > =cut > >@@ -15,11 +15,11 @@ use warnings; > > use base 'DBIx::Class::Core'; > >-=head1 TABLE: C<pseudonymized_borrower_attributes> >+=head1 TABLE: C<pseudonymized_metadata_values> > > =cut > >-__PACKAGE__->table("pseudonymized_borrower_attributes"); >+__PACKAGE__->table("pseudonymized_metadata_values"); > > =head1 ACCESSORS > >@@ -37,22 +37,29 @@ Row id field > is_foreign_key: 1 > is_nullable: 0 > >-=head2 code >+=head2 tablename > > data_type: 'varchar' >- is_foreign_key: 1 > is_nullable: 0 > size: 64 > >-foreign key from the borrower_attribute_types table, defines which custom field this value was entered for >+Name of the related table > >-=head2 attribute >+=head2 key >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 64 >+ >+key for the metadata >+ >+=head2 value > > data_type: 'varchar' > is_nullable: 1 > size: 255 > >-custom patron field value >+value for the metadata > > =cut > >@@ -61,9 +68,11 @@ __PACKAGE__->add_columns( > { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, > "transaction_id", > { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >- "code", >- { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 64 }, >- "attribute", >+ "tablename", >+ { data_type => "varchar", is_nullable => 0, size => 64 }, >+ "key", >+ { data_type => "varchar", is_nullable => 0, size => 64 }, >+ "value", > { data_type => "varchar", is_nullable => 1, size => 255 }, > ); > >@@ -81,21 +90,6 @@ __PACKAGE__->set_primary_key("id"); > > =head1 RELATIONS > >-=head2 code >- >-Type: belongs_to >- >-Related object: L<Koha::Schema::Result::BorrowerAttributeType> >- >-=cut >- >-__PACKAGE__->belongs_to( >- "code", >- "Koha::Schema::Result::BorrowerAttributeType", >- { code => "code" }, >- { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, >-); >- > =head2 transaction > > Type: belongs_to >@@ -112,8 +106,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-10 14:00:56 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:09zbX6WErMxrZSBrc/nvdA >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-08-21 15:48:05 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Zkl/9EJIoAZBlwoWejjMMA > > > # You can replace this text with custom code or comments, and it will be preserved on regeneration >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37901
:
178356
|
178956
|
178957
|
178958
|
178959
|
178960
|
178961
|
178962
|
178963
|
178964
|
178965
|
178966
|
178967
|
178968
|
178980
|
178981
|
178982
|
178983
|
178984
|
178985
|
178986
|
178987
|
178988
|
178989
|
178990
|
178991
|
178992
|
181008
|
181009
|
181010
|
181011
|
181012
|
181013
|
181014
|
181015
|
181016
|
181017
|
181018
|
181019
|
181020
|
181696
|
181697
|
181698
|
181699
|
181700
|
181701
|
181702
|
181703
|
181704
|
181705
|
181706
|
181707
|
181708
|
184709
|
184710
|
184711
|
184712
|
184713
|
184714
|
184715
|
184716
|
184717
|
184718
|
184719
|
184720
|
184721
|
185495
|
185496
|
185497
|
185498
|
185499
|
185500
|
185501
|
185502
|
185503
|
185504
|
185505
|
185506
|
185507
|
185544
|
185545
|
185546
|
185547
|
185548
|
185549
|
185550
|
185551
|
185552
|
185553
|
185554
|
185555
|
185556
| 185629