Bug 11879: DBIC schema changes
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Jul 2021 13:40:22 +0000 (15:40 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Jul 2021 13:47:33 +0000 (15:47 +0200)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Schema/Result/Borrower.pm
Koha/Schema/Result/BorrowerModification.pm
Koha/Schema/Result/Deletedborrower.pm

index 89529d9..68abbc1 100644 (file)
@@ -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</aqorder_users> -> 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 },
index d2c4485..81c5fed 100644 (file)
@@ -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';
index 195b23e..f0d7395 100644 (file)
@@ -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 },