From feb499e87f57d9fa40e2d9c16203f7ebfebb6d77 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 25 Oct 2023 11:36:18 -0300 Subject: [PATCH] Bug 33970: DBIC schema Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/Illrequestattribute.pm | 18 +++++++++++++++--- Koha/Schema/Result/PatronConsent.pm | 15 +++++---------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/Koha/Schema/Result/Illrequestattribute.pm b/Koha/Schema/Result/Illrequestattribute.pm index c5e7af75d3..48bd3aff5c 100644 --- a/Koha/Schema/Result/Illrequestattribute.pm +++ b/Koha/Schema/Result/Illrequestattribute.pm @@ -32,6 +32,14 @@ __PACKAGE__->table("illrequestattributes"); ILL request number +=head2 backend + + data_type: 'varchar' + is_nullable: 0 + size: 80 + +API ILL backend name + =head2 type data_type: 'varchar' @@ -65,6 +73,8 @@ __PACKAGE__->add_columns( is_foreign_key => 1, is_nullable => 0, }, + "backend", + { data_type => "varchar", is_nullable => 0, size => 80 }, "type", { data_type => "varchar", is_nullable => 0, size => 200 }, "value", @@ -79,13 +89,15 @@ __PACKAGE__->add_columns( =item * L +=item * L + =item * L =back =cut -__PACKAGE__->set_primary_key("illrequest_id", "type"); +__PACKAGE__->set_primary_key("illrequest_id", "backend", "type"); =head1 RELATIONS @@ -105,8 +117,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qNhL5kiGVR8WroCHQY5DyQ +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-25 14:33:42 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ACb1xoMuMjLHDIit/H29Vw __PACKAGE__->add_columns( '+readonly' => { is_boolean => 1 } diff --git a/Koha/Schema/Result/PatronConsent.pm b/Koha/Schema/Result/PatronConsent.pm index 5432676652..732ffef7ac 100644 --- a/Koha/Schema/Result/PatronConsent.pm +++ b/Koha/Schema/Result/PatronConsent.pm @@ -37,11 +37,10 @@ __PACKAGE__->table("patron_consent"); =head2 type - data_type: 'enum' - extra: {list => ["GDPR_PROCESSING"]} + data_type: 'tinytext' is_nullable: 1 -allows for future extension +consent type, could be custom type =head2 given_on @@ -63,11 +62,7 @@ __PACKAGE__->add_columns( "borrowernumber", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "type", - { - data_type => "enum", - extra => { list => ["GDPR_PROCESSING"] }, - is_nullable => 1, - }, + { data_type => "tinytext", is_nullable => 1 }, "given_on", { data_type => "datetime", @@ -112,8 +107,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rkn/K2jtHPFkGoG4QCmLsw +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-25 14:33:42 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LWTvNPA/R0VoWUzcRLnjDg sub koha_object_class { 'Koha::Patron::Consent'; -- 2.39.5