Bugzilla – Attachment 157393 Details for
Bug 26170
Add protected status for patrons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26170: Update Schema - DO NOT PUSH
Bug-26170-Update-Schema---DO-NOT-PUSH.patch (text/plain), 3.45 KB, created by
Magnus Enger
on 2023-10-19 08:30:19 UTC
(
hide
)
Description:
Bug 26170: Update Schema - DO NOT PUSH
Filename:
MIME Type:
Creator:
Magnus Enger
Created:
2023-10-19 08:30:19 UTC
Size:
3.45 KB
patch
obsolete
>From 6a3e7d002154187dc9a38f13f7e41212a3c4dac0 Mon Sep 17 00:00:00 2001 >From: Magnus Enger <magnus@libriotech.no> >Date: Thu, 17 Aug 2023 10:42:59 +0300 >Subject: [PATCH] Bug 26170: Update Schema - DO NOT PUSH > >--- > Koha/Schema/Result/Borrower.pm | 17 ++++++++++++++--- > Koha/Schema/Result/Deletedborrower.pm | 17 ++++++++++++++--- > 2 files changed, 28 insertions(+), 6 deletions(-) > >diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm >index 5576e8fcd2..65dcba5e80 100644 >--- a/Koha/Schema/Result/Borrower.pm >+++ b/Koha/Schema/Result/Borrower.pm >@@ -647,6 +647,14 @@ flag for allowing auto-renewal > > useful for reporting purposes > >+=head2 protected >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+boolean flag to mark selected patrons as protected from deletion >+ > =cut > > __PACKAGE__->add_columns( >@@ -850,6 +858,8 @@ __PACKAGE__->add_columns( > { data_type => "tinyint", default_value => 1, is_nullable => 0 }, > "primary_contact_method", > { data_type => "varchar", is_nullable => 1, size => 45 }, >+ "protected", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, > ); > > =head1 PRIMARY KEY >@@ -2103,8 +2113,8 @@ Composing rels: L</user_permissions> -> permission > __PACKAGE__->many_to_many("permissions", "user_permissions", "permission"); > > >-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-04-06 15:46:57 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f6omVb7EtiysdaWTX3IRzg >+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-08-17 07:41:17 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Irtx4l6jIg0O5Y9oiXImdw > > __PACKAGE__->has_many( > "restrictions", >@@ -2125,7 +2135,8 @@ __PACKAGE__->add_columns( > '+lost' => { is_boolean => 1 }, > '+gonenoaddress' => { is_boolean => 1 }, > '+privacy_guarantor_fines' => { is_boolean => 1 }, >- '+autorenew_checkouts' => { is_boolean => 1 } >+ '+autorenew_checkouts' => { is_boolean => 1 }, >+ '+protected' => { is_boolean => 1 }, > ); > > sub koha_objects_class { >diff --git a/Koha/Schema/Result/Deletedborrower.pm b/Koha/Schema/Result/Deletedborrower.pm >index 86fd6b190d..3f75430a9f 100644 >--- a/Koha/Schema/Result/Deletedborrower.pm >+++ b/Koha/Schema/Result/Deletedborrower.pm >@@ -644,6 +644,14 @@ flag for allowing auto-renewal > > useful for reporting purposes > >+=head2 protected >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+boolean flag to mark selected patrons as protected from deletion >+ > =cut > > __PACKAGE__->add_columns( >@@ -835,18 +843,21 @@ __PACKAGE__->add_columns( > { data_type => "tinyint", default_value => 1, is_nullable => 0 }, > "primary_contact_method", > { data_type => "varchar", is_nullable => 1, size => 45 }, >+ "protected", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-04-06 15:46:58 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dqGu9iDgO+u09l9X1G0NuA >+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-08-17 10:21:11 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IUSssxqhduL2Qur3nO7Nig > > __PACKAGE__->add_columns( > '+anonymized' => { is_boolean => 1 }, > '+lost' => { is_boolean => 1 }, > '+gonenoaddress' => { is_boolean => 1 }, > '+privacy_guarantor_fines' => { is_boolean => 1 }, >- '+autorenew_checkouts' => { is_boolean => 1 } >+ '+autorenew_checkouts' => { is_boolean => 1 }, >+ '+protected' => { is_boolean => 1 }, > ); > > sub koha_objects_class { >-- >2.34.1
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 26170
:
154602
|
154603
|
154604
|
157247
|
157248
|
157249
|
157250
|
157309
|
157310
|
157311
|
157391
|
157392
|
157393
|
157395
|
157396
|
157397
|
157426
|
157427
|
157428
|
157629
|
157630
|
157631