From fa2d2016ee3b34ef848cf9235c881c3fd81210d3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 12 Jul 2021 15:40:22 +0200 Subject: [PATCH] Bug 11879: DBIC schema changes Signed-off-by: Jonathan Druart --- Koha/Schema/Result/Borrower.pm | 14 ++++++++++++-- Koha/Schema/Result/BorrowerModification.pm | 14 ++++++++++++-- Koha/Schema/Result/Deletedborrower.pm | 14 ++++++++++++-- 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm index 89529d93c0..68abbc11aa 100644 --- a/Koha/Schema/Result/Borrower.pm +++ b/Koha/Schema/Result/Borrower.pm @@ -601,6 +601,14 @@ flag for data anonymization flag for allowing auto-renewal +=head2 primary_contact_method + + data_type: 'varchar' + is_nullable: 1 + size: 45 + +useful for reporting purposes + =cut __PACKAGE__->add_columns( @@ -787,6 +795,8 @@ __PACKAGE__->add_columns( { data_type => "tinyint", default_value => 0, is_nullable => 0 }, "autorenew_checkouts", { data_type => "tinyint", default_value => 1, is_nullable => 0 }, + "primary_contact_method", + { data_type => "varchar", is_nullable => 1, size => 45 }, ); =head1 PRIMARY KEY @@ -1865,8 +1875,8 @@ Composing rels: L -> ordernumber __PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-06-07 05:28:03 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CgLzd4URQdNSXTgd7QnFFg +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-07-12 13:40:00 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IKPb4912o8oCHtmFAi6FPQ __PACKAGE__->add_columns( '+anonymized' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/BorrowerModification.pm b/Koha/Schema/Result/BorrowerModification.pm index d2c4485495..81c5fed1fe 100644 --- a/Koha/Schema/Result/BorrowerModification.pm +++ b/Koha/Schema/Result/BorrowerModification.pm @@ -423,6 +423,14 @@ __PACKAGE__->table("borrower_modifications"); data processing consent +=head2 primary_contact_method + + data_type: 'varchar' + is_nullable: 1 + size: 45 + +useful for reporting purposes + =cut __PACKAGE__->add_columns( @@ -595,6 +603,8 @@ __PACKAGE__->add_columns( datetime_undef_if_invalid => 1, is_nullable => 1, }, + "primary_contact_method", + { data_type => "varchar", is_nullable => 1, size => 45 }, ); =head1 PRIMARY KEY @@ -612,8 +622,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("verification_token", "borrowernumber"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-06-07 05:28:03 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JZ6vS5nH8EPc0OL3LQRG+Q +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-07-12 13:40:00 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6giYT5URks8+6VnAs/rtkg sub koha_object_class { 'Koha::Patron::Modification'; diff --git a/Koha/Schema/Result/Deletedborrower.pm b/Koha/Schema/Result/Deletedborrower.pm index 195b23eb2b..f0d7395d8d 100644 --- a/Koha/Schema/Result/Deletedborrower.pm +++ b/Koha/Schema/Result/Deletedborrower.pm @@ -598,6 +598,14 @@ flag for data anonymization flag for allowing auto-renewal +=head2 primary_contact_method + + data_type: 'varchar' + is_nullable: 1 + size: 45 + +useful for reporting purposes + =cut __PACKAGE__->add_columns( @@ -772,11 +780,13 @@ __PACKAGE__->add_columns( { data_type => "tinyint", default_value => 0, is_nullable => 0 }, "autorenew_checkouts", { data_type => "tinyint", default_value => 1, is_nullable => 0 }, + "primary_contact_method", + { data_type => "varchar", is_nullable => 1, size => 45 }, ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-06-07 05:28:04 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/9VjUuilKGDwV/pLlf/4ew +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-07-12 13:40:00 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9q8LmKrfO6bAAFaJ4Z3Jrg __PACKAGE__->add_columns( '+anonymized' => { is_boolean => 1 }, -- 2.39.2