Bugzilla – Attachment 183919 Details for
Bug 40337
checkprevcheckout must be defined as ENUM at DB level
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40337: DBIC schema changes
Bug-40337-DBIC-schema-changes.patch (text/plain), 4.62 KB, created by
Jonathan Druart
on 2025-07-10 07:17:09 UTC
(
hide
)
Description:
Bug 40337: DBIC schema changes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-07-10 07:17:09 UTC
Size:
4.62 KB
patch
obsolete
>From 47ec882370a4adb4cd4956ddc160ba1c4f5e6799 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 10 Jul 2025 09:16:23 +0200 >Subject: [PATCH] Bug 40337: DBIC schema changes > >--- > Koha/Schema/Result/Borrower.pm | 12 ++++++------ > Koha/Schema/Result/Category.pm | 12 ++++++------ > Koha/Schema/Result/Deletedborrower.pm | 12 ++++++------ > 3 files changed, 18 insertions(+), 18 deletions(-) > >diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm >index 2e1a5e9d517..1e1fa11cd42 100644 >--- a/Koha/Schema/Result/Borrower.pm >+++ b/Koha/Schema/Result/Borrower.pm >@@ -582,10 +582,10 @@ controls if relatives can see this patron's checkouts > > =head2 checkprevcheckout > >- data_type: 'varchar' >+ data_type: 'enum' > default_value: 'inherit' >+ extra: {list => ["yes","no","inherit"]} > is_nullable: 0 >- size: 7 > > produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'. > >@@ -832,10 +832,10 @@ __PACKAGE__->add_columns( > { data_type => "tinyint", default_value => 0, is_nullable => 0 }, > "checkprevcheckout", > { >- data_type => "varchar", >+ data_type => "enum", > default_value => "inherit", >+ extra => { list => ["yes", "no", "inherit"] }, > is_nullable => 0, >- size => 7, > }, > "updated_on", > { >@@ -2197,8 +2197,8 @@ Composing rels: L</user_permissions> -> permission > __PACKAGE__->many_to_many("permissions", "user_permissions", "permission"); > > >-# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-04-28 16:41:47 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:J1oaW0hFRihEJZ6U+XSwag >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-10 07:11:31 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XFOe2X4k2DUziaNS5pWd/Q > > __PACKAGE__->belongs_to( > "library", >diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm >index 62c6e3fb4df..9cb9622295a 100644 >--- a/Koha/Schema/Result/Category.pm >+++ b/Koha/Schema/Result/Category.pm >@@ -136,10 +136,10 @@ Default privacy setting for this patron category > > =head2 checkprevcheckout > >- data_type: 'varchar' >+ data_type: 'enum' > default_value: 'inherit' >+ extra: {list => ["yes","no","inherit"]} > is_nullable: 0 >- size: 7 > > produce a warning for this patron category if this item has previously been checked out to this patron if 'yes', not if 'no', defer to syspref setting if 'inherit'. > >@@ -274,10 +274,10 @@ __PACKAGE__->add_columns( > }, > "checkprevcheckout", > { >- data_type => "varchar", >+ data_type => "enum", > default_value => "inherit", >+ extra => { list => ["yes", "no", "inherit"] }, > is_nullable => 0, >- size => 7, > }, > "can_place_ill_in_opac", > { data_type => "tinyint", default_value => 1, is_nullable => 0 }, >@@ -410,8 +410,8 @@ __PACKAGE__->has_many( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-12-03 15:46:23 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jiQq3bW+ZfdYpUpfZq1Rzw >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-10 07:11:31 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ADt+iDjteg9Jb81L2FMIvg > > # You can replace this text with custom code or comments, and it will be preserved on regeneration > >diff --git a/Koha/Schema/Result/Deletedborrower.pm b/Koha/Schema/Result/Deletedborrower.pm >index b2decd87d28..5d0f10facb7 100644 >--- a/Koha/Schema/Result/Deletedborrower.pm >+++ b/Koha/Schema/Result/Deletedborrower.pm >@@ -579,10 +579,10 @@ controls if relatives can see this patron's checkouts > > =head2 checkprevcheckout > >- data_type: 'varchar' >+ data_type: 'enum' > default_value: 'inherit' >+ extra: {list => ["yes","no","inherit"]} > is_nullable: 0 >- size: 7 > > produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'. > >@@ -817,10 +817,10 @@ __PACKAGE__->add_columns( > { data_type => "tinyint", default_value => 0, is_nullable => 0 }, > "checkprevcheckout", > { >- data_type => "varchar", >+ data_type => "enum", > default_value => "inherit", >+ extra => { list => ["yes", "no", "inherit"] }, > is_nullable => 0, >- size => 7, > }, > "updated_on", > { >@@ -857,8 +857,8 @@ __PACKAGE__->add_columns( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-04-28 16:41:47 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5QA+/eORyEKhkG++0f3Hvw >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-10 07:11:31 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vAkNNQagJcYfZ0/6mDOw8g > > __PACKAGE__->add_columns( > '+anonymized' => { is_boolean => 1 }, >-- >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 40337
:
183918
|
183919
|
183946
|
183947
|
183948
|
183969
|
183970