From 4bee5caf947cac7072100726d339c44e2b28e60a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 10 Jul 2025 09:16:23 +0200 Subject: [PATCH] Bug 40337: DBIC schema changes Signed-off-by: Eric Garcia --- 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 2e1a5e9d51..1e1fa11cd4 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 -> 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 62c6e3fb4d..9cb9622295 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 b2decd87d2..5d0f10facb 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.39.5