From 9e45ef028f9abca38fa8c1ac9609232d1b035ca1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 5 May 2025 16:23:24 +0200 Subject: [PATCH] Bug 39835: Add is_boolean for tinyint(1) Signed-off-by: Tomas Cohen Arazi Signed-off-by: Katrin Fischer --- Koha/Schema/Result/AccountDebitType.pm | 19 +++++-------------- Koha/Schema/Result/AdditionalField.pm | 1 + Koha/Schema/Result/Aqbudgetperiod.pm | 5 +++++ Koha/Schema/Result/AqbudgetsPlanning.pm | 4 +++- Koha/Schema/Result/AuthSubfieldStructure.pm | 6 ++++++ Koha/Schema/Result/Borrower.pm | 13 +++++++------ Koha/Schema/Result/BorrowerAttributeType.pm | 10 ++++++---- .../Result/BorrowerMessagePreference.pm | 5 +++-- Koha/Schema/Result/BorrowerModification.pm | 5 +++++ Koha/Schema/Result/Category.pm | 7 ++++++- Koha/Schema/Result/ClubTemplate.pm | 6 ++++++ Koha/Schema/Result/CreatorLayout.pm | 5 +++-- .../Result/CurbsidePickupOpeningSlot.pm | 4 +++- Koha/Schema/Result/Currency.pm | 5 ++++- Koha/Schema/Result/Deletedbiblio.pm | 4 ++++ Koha/Schema/Result/Deletedborrower.pm | 13 +++++++------ Koha/Schema/Result/Deleteditem.pm | 6 ++++++ Koha/Schema/Result/HouseboundRole.pm | 5 +++++ Koha/Schema/Result/ImportBiblio.pm | 4 ++++ Koha/Schema/Result/Item.pm | 6 ++++++ Koha/Schema/Result/Letter.pm | 4 ++++ .../Result/MarcModificationTemplateAction.pm | 4 +++- Koha/Schema/Result/MarcSubfieldStructure.pm | 6 +++++- Koha/Schema/Result/MessageAttribute.pm | 5 +++-- Koha/Schema/Result/MessageTransport.pm | 5 +++-- Koha/Schema/Result/OldIssue.pm | 3 ++- Koha/Schema/Result/PatronList.pm | 4 +++- Koha/Schema/Result/Rating.pm | 4 +++- Koha/Schema/Result/SearchField.pm | 4 +++- Koha/Schema/Result/SearchMarcToField.pm | 5 +++-- Koha/Schema/Result/Subscription.pm | 7 ++++--- Koha/Schema/Result/TransportCost.pm | 4 +++- Koha/Schema/Result/VendorEdiAccount.pm | 8 +++++++- 33 files changed, 141 insertions(+), 55 deletions(-) diff --git a/Koha/Schema/Result/AccountDebitType.pm b/Koha/Schema/Result/AccountDebitType.pm index 7d25636759..127ee82ef8 100644 --- a/Koha/Schema/Result/AccountDebitType.pm +++ b/Koha/Schema/Result/AccountDebitType.pm @@ -149,19 +149,11 @@ __PACKAGE__->has_many( # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9+mMPMSWcc/PwryYNQ2Jqg __PACKAGE__->add_columns( - '+is_system' => { is_boolean => 1 } -); - -__PACKAGE__->add_columns( - "+can_be_sold" => { is_boolean => 1 } -); - -__PACKAGE__->add_columns( - "+can_be_invoiced" => { is_boolean => 1 } -); - -__PACKAGE__->add_columns( - "+restricts_checkouts" => { is_boolean => 1 } + '+archived' => { is_boolean => 1 }, + '+is_system' => { is_boolean => 1 }, + "+can_be_invoiced" => { is_boolean => 1 }, + "+can_be_sold" => { is_boolean => 1 }, + "+restricts_checkouts" => { is_boolean => 1 }, ); =head2 koha_objects_class @@ -184,5 +176,4 @@ sub koha_object_class { 'Koha::Account::DebitType'; } -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/AdditionalField.pm b/Koha/Schema/Result/AdditionalField.pm index 51e184d5ff..e749b4b703 100644 --- a/Koha/Schema/Result/AdditionalField.pm +++ b/Koha/Schema/Result/AdditionalField.pm @@ -168,6 +168,7 @@ __PACKAGE__->has_many( __PACKAGE__->add_columns( '+repeatable' => { is_boolean => 1 }, + '+searchable' => { is_boolean => 1 }, ); 1; diff --git a/Koha/Schema/Result/Aqbudgetperiod.pm b/Koha/Schema/Result/Aqbudgetperiod.pm index 6a7f193504..2de5db73b1 100644 --- a/Koha/Schema/Result/Aqbudgetperiod.pm +++ b/Koha/Schema/Result/Aqbudgetperiod.pm @@ -149,6 +149,11 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F/ipbU/Wrqy3pDInlmLOTw +__PACKAGE__->add_columns( + '+budget_period_active' => { is_boolean => 1 }, + '+budget_period_locked' => { is_boolean => 1 }, +); + =head2 koha_object_class Missing POD for koha_object_class. diff --git a/Koha/Schema/Result/AqbudgetsPlanning.pm b/Koha/Schema/Result/AqbudgetsPlanning.pm index 990e04effe..988f5b4ff7 100644 --- a/Koha/Schema/Result/AqbudgetsPlanning.pm +++ b/Koha/Schema/Result/AqbudgetsPlanning.pm @@ -116,6 +116,8 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7nhWIqgezc+W8sHqJkXCbQ +__PACKAGE__->add_columns( + '+display' => { is_boolean => 1 }, +); -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/AuthSubfieldStructure.pm b/Koha/Schema/Result/AuthSubfieldStructure.pm index 24a15f7e82..0dd90736f4 100644 --- a/Koha/Schema/Result/AuthSubfieldStructure.pm +++ b/Koha/Schema/Result/AuthSubfieldStructure.pm @@ -220,6 +220,12 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-01-19 06:49:06 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c6rPINoF/ZP4YzXU1VR+UQ +__PACKAGE__->add_columns( + '+isurl' => { is_boolean => 1 }, + '+linkid' => { is_boolean => 1 }, + '+tab' => { is_boolean => 1 }, +); + =head2 koha_object_class Missing POD for koha_object_class. diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm index 2749df84d0..02e8cdb520 100644 --- a/Koha/Schema/Result/Borrower.pm +++ b/Koha/Schema/Result/Borrower.pm @@ -2222,12 +2222,13 @@ __PACKAGE__->has_many( ); __PACKAGE__->add_columns( - '+anonymized' => { is_boolean => 1 }, - '+autorenew_checkouts' => { is_boolean => 1 }, - '+gonenoaddress' => { is_boolean => 1 }, - '+lost' => { is_boolean => 1 }, - '+privacy_guarantor_fines' => { is_boolean => 1 }, - '+protected' => { is_boolean => 1 }, + '+anonymized' => { is_boolean => 1 }, + '+autorenew_checkouts' => { is_boolean => 1 }, + '+gonenoaddress' => { is_boolean => 1 }, + '+lost' => { is_boolean => 1 }, + '+privacy_guarantor_checkouts' => { is_boolean => 1 }, + '+privacy_guarantor_fines' => { is_boolean => 1 }, + '+protected' => { is_boolean => 1 }, ); __PACKAGE__->has_many( diff --git a/Koha/Schema/Result/BorrowerAttributeType.pm b/Koha/Schema/Result/BorrowerAttributeType.pm index f67892c0b7..5673e86dee 100644 --- a/Koha/Schema/Result/BorrowerAttributeType.pm +++ b/Koha/Schema/Result/BorrowerAttributeType.pm @@ -274,15 +274,17 @@ __PACKAGE__->has_many( # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Os1rn9zKu7/rVLVjZM3Mbg __PACKAGE__->add_columns( + '+display_checkout' => { is_boolean => 1 }, + '+is_date' => { is_boolean => 1 }, '+keep_for_pseudonymization' => { is_boolean => 1 }, '+mandatory' => { is_boolean => 1 }, + '+opac_display' => { is_boolean => 1 }, + '+opac_editable' => { is_boolean => 1 }, '+opac_mandatory' => { is_boolean => 1 }, + '+repeatable' => { is_boolean => 1 }, '+searched_by_default' => { is_boolean => 1 }, '+staff_searchable' => { is_boolean => 1 }, -); - -__PACKAGE__->add_columns( - '+is_date' => { is_boolean => 1 }, + '+unique_id' => { is_boolean => 1 }, ); =head2 koha_object_class diff --git a/Koha/Schema/Result/BorrowerMessagePreference.pm b/Koha/Schema/Result/BorrowerMessagePreference.pm index bc04bd8008..28c9b935c1 100644 --- a/Koha/Schema/Result/BorrowerMessagePreference.pm +++ b/Koha/Schema/Result/BorrowerMessagePreference.pm @@ -191,8 +191,9 @@ __PACKAGE__->many_to_many( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-12 20:33:58 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KVYT5xqcXSDijZBaEHLV+g - -# You can replace this text with custom content, and it will be preserved on regeneration +__PACKAGE__->add_columns( + '+wants_digest' => { is_boolean => 1 }, +); =head2 koha_object_class diff --git a/Koha/Schema/Result/BorrowerModification.pm b/Koha/Schema/Result/BorrowerModification.pm index 99553a8e86..ff2afb1e93 100644 --- a/Koha/Schema/Result/BorrowerModification.pm +++ b/Koha/Schema/Result/BorrowerModification.pm @@ -658,6 +658,11 @@ __PACKAGE__->set_primary_key("verification_token", "borrowernumber"); # Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-11-11 11:07:06 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QOqDkQ+8LuTY6qYrPhsQWw +__PACKAGE__->add_columns( + '+gonenoaddress' => { is_boolean => 1 }, + '+lost' => { is_boolean => 1 }, +); + =head2 koha_object_class Missing POD for koha_object_class. diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm index 063ed67a24..2368f82c46 100644 --- a/Koha/Schema/Result/Category.pm +++ b/Koha/Schema/Result/Category.pm @@ -428,9 +428,14 @@ sub koha_objects_class { __PACKAGE__->add_columns( '+can_be_guarantee' => { is_boolean => 1 }, '+can_place_ill_in_opac' => { is_boolean => 1 }, + '+change_password' => { is_boolean => 1 }, + '+dateofbirthrequired' => { is_boolean => 1 }, '+exclude_from_local_holds_priority' => { is_boolean => 1 }, - '+require_strong_password' => { is_boolean => 1 }, '+force_password_reset_when_set_by_staff' => { is_boolean => 1 }, + '+hidelostitems' => { is_boolean => 1 }, + '+overduenoticerequired' => { is_boolean => 1 }, + '+require_strong_password' => { is_boolean => 1 }, + '+reset_password' => { is_boolean => 1 }, ); 1; diff --git a/Koha/Schema/Result/ClubTemplate.pm b/Koha/Schema/Result/ClubTemplate.pm index 5d47d8eafc..90aeaa64f1 100644 --- a/Koha/Schema/Result/ClubTemplate.pm +++ b/Koha/Schema/Result/ClubTemplate.pm @@ -192,6 +192,12 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1UuejI9kkTb9eeNKvSLAQQ +__PACKAGE__->add_columns( + '+is_deletable' => { is_boolean => 1 }, + '+is_email_required' => { is_boolean => 1 }, + '+is_enrollable_from_opac' => { is_boolean => 1 }, +); + =head2 koha_object_class Missing POD for koha_object_class. diff --git a/Koha/Schema/Result/CreatorLayout.pm b/Koha/Schema/Result/CreatorLayout.pm index b9c1f688b1..4ca1c2ecbb 100644 --- a/Koha/Schema/Result/CreatorLayout.pm +++ b/Koha/Schema/Result/CreatorLayout.pm @@ -220,8 +220,9 @@ __PACKAGE__->set_primary_key("layout_id"); # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:W/ICw+9yY7wxZ0IgqqXcFg __PACKAGE__->add_columns( - '+guidebox' => { is_boolean => 0 }, - '+oblique_title' => { is_boolean => 0 }, '+callnum_split' => { is_boolean => 0 }, + '+guidebox' => { is_boolean => 0 }, + '+oblique_title' => { is_boolean => 0 }, ); + 1; diff --git a/Koha/Schema/Result/CurbsidePickupOpeningSlot.pm b/Koha/Schema/Result/CurbsidePickupOpeningSlot.pm index 052379db29..90c5552dbf 100644 --- a/Koha/Schema/Result/CurbsidePickupOpeningSlot.pm +++ b/Koha/Schema/Result/CurbsidePickupOpeningSlot.pm @@ -112,6 +112,8 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-27 11:58:44 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5kzC0AAB9LL0gR+FFnmYgw +__PACKAGE__->add_columns( + '+day' => { is_boolean => 1 }, +); -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Currency.pm b/Koha/Schema/Result/Currency.pm index 391bbf0fe6..c8c69d5f2c 100644 --- a/Koha/Schema/Result/Currency.pm +++ b/Koha/Schema/Result/Currency.pm @@ -185,7 +185,10 @@ __PACKAGE__->has_many( # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FhViwrd64xn2bqz7D054Mw __PACKAGE__->add_columns( - "+p_cs_precedes" => { is_boolean => 1 }, + '+active' => { is_boolean => 1 }, + '+archived' => { is_boolean => 1 }, + '+p_sep_by_space' => { is_boolean => 1 }, + "+p_cs_precedes" => { is_boolean => 1 }, ); =head2 koha_object_class diff --git a/Koha/Schema/Result/Deletedbiblio.pm b/Koha/Schema/Result/Deletedbiblio.pm index 960a0ed7f4..a699218123 100644 --- a/Koha/Schema/Result/Deletedbiblio.pm +++ b/Koha/Schema/Result/Deletedbiblio.pm @@ -228,6 +228,10 @@ __PACKAGE__->has_one( { cascade_copy => 0, cascade_delete => 0 }, ); +__PACKAGE__->add_columns( + '+serial' => { is_boolean => 1 }, +); + =head2 koha_objects_class Missing POD for koha_objects_class. diff --git a/Koha/Schema/Result/Deletedborrower.pm b/Koha/Schema/Result/Deletedborrower.pm index b31b391631..b2decd87d2 100644 --- a/Koha/Schema/Result/Deletedborrower.pm +++ b/Koha/Schema/Result/Deletedborrower.pm @@ -861,12 +861,13 @@ __PACKAGE__->add_columns( # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5QA+/eORyEKhkG++0f3Hvw __PACKAGE__->add_columns( - '+anonymized' => { is_boolean => 1 }, - '+autorenew_checkouts' => { is_boolean => 1 }, - '+gonenoaddress' => { is_boolean => 1 }, - '+lost' => { is_boolean => 1 }, - '+privacy_guarantor_fines' => { is_boolean => 1 }, - '+protected' => { is_boolean => 1 }, + '+anonymized' => { is_boolean => 1 }, + '+autorenew_checkouts' => { is_boolean => 1 }, + '+gonenoaddress' => { is_boolean => 1 }, + '+lost' => { is_boolean => 1 }, + '+privacy_guarantor_checkouts' => { is_boolean => 1 }, + '+privacy_guarantor_fines' => { is_boolean => 1 }, + '+protected' => { is_boolean => 1 }, ); =head2 koha_objects_class diff --git a/Koha/Schema/Result/Deleteditem.pm b/Koha/Schema/Result/Deleteditem.pm index f0ffca3875..ae17dc6d48 100644 --- a/Koha/Schema/Result/Deleteditem.pm +++ b/Koha/Schema/Result/Deleteditem.pm @@ -536,7 +536,13 @@ __PACKAGE__->set_primary_key("itemnumber"); __PACKAGE__->add_columns( '+bookable' => { is_boolean => 1 }, + '+damaged' => { is_boolean => 1 }, '+exclude_from_local_holds_priority' => { is_boolean => 1 }, + '+itemlost' => { is_boolean => 1 }, + '+notforloan' => { is_boolean => 1 }, + '+restricted' => { is_boolean => 1 }, + '+stack' => { is_boolean => 1 }, + '+withdrawn' => { is_boolean => 1 }, ); =head2 koha_objects_class diff --git a/Koha/Schema/Result/HouseboundRole.pm b/Koha/Schema/Result/HouseboundRole.pm index ef072c0cd1..dda0754880 100644 --- a/Koha/Schema/Result/HouseboundRole.pm +++ b/Koha/Schema/Result/HouseboundRole.pm @@ -91,6 +91,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BocU8VE+5j4lYlxNU6Lofw +__PACKAGE__->add_columns( + '+housebound_chooser' => { is_boolean => 1 }, + '+housebound_deliverer' => { is_boolean => 1 }, +); + =head2 koha_object_class Missing POD for koha_object_class. diff --git a/Koha/Schema/Result/ImportBiblio.pm b/Koha/Schema/Result/ImportBiblio.pm index 54c45359d0..71b8b18669 100644 --- a/Koha/Schema/Result/ImportBiblio.pm +++ b/Koha/Schema/Result/ImportBiblio.pm @@ -128,6 +128,10 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-17 11:17:50 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Oj/1VkjYP538OlNeu41mqA +__PACKAGE__->add_columns( + '+has_items' => { is_boolean => 1 }, +); + =head2 koha_object_class Missing POD for koha_object_class. diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index d89b2f8eee..ce70d79dcb 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -1029,7 +1029,13 @@ __PACKAGE__->belongs_to( __PACKAGE__->add_columns( '+bookable' => { is_boolean => 1 }, + '+damaged' => { is_boolean => 1 }, '+exclude_from_local_holds_priority' => { is_boolean => 1 }, + '+itemlost' => { is_boolean => 1 }, + '+notforloan' => { is_boolean => 1 }, + '+restricted' => { is_boolean => 1 }, + '+stack' => { is_boolean => 1 }, + '+withdrawn' => { is_boolean => 1 }, ); # Relationship with orders via the aqorders_item table that not have foreign keys diff --git a/Koha/Schema/Result/Letter.pm b/Koha/Schema/Result/Letter.pm index bf9a42bb6c..5668b896c9 100644 --- a/Koha/Schema/Result/Letter.pm +++ b/Koha/Schema/Result/Letter.pm @@ -244,6 +244,10 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-26 17:01:21 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UglmO8Xk7xnC09bYETA5+w +__PACKAGE__->add_columns( + '+is_html' => { is_boolean => 1 }, +); + =head2 koha_object_class Missing POD for koha_object_class. diff --git a/Koha/Schema/Result/MarcModificationTemplateAction.pm b/Koha/Schema/Result/MarcModificationTemplateAction.pm index a39a02ef7b..b8fd284bfb 100644 --- a/Koha/Schema/Result/MarcModificationTemplateAction.pm +++ b/Koha/Schema/Result/MarcModificationTemplateAction.pm @@ -237,6 +237,8 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-02-24 20:18:23 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yDK2nFt+Fj3UuXAij1UwQw +__PACKAGE__->add_columns( + '+conditional_regex' => { is_boolean => 1 }, +); -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/MarcSubfieldStructure.pm b/Koha/Schema/Result/MarcSubfieldStructure.pm index 9dda0ba608..0bb7ff632f 100644 --- a/Koha/Schema/Result/MarcSubfieldStructure.pm +++ b/Koha/Schema/Result/MarcSubfieldStructure.pm @@ -233,6 +233,10 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-12-10 09:06:23 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KVbDXEVf96eDkbPYpcmQVA +__PACKAGE__->add_columns( + '+hidden' => { is_boolean => 1 }, + '+isurl' => { is_boolean => 1 }, + '+tab' => { is_boolean => 1 }, +); -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/MessageAttribute.pm b/Koha/Schema/Result/MessageAttribute.pm index 3527ef741f..1bb80bb48b 100644 --- a/Koha/Schema/Result/MessageAttribute.pm +++ b/Koha/Schema/Result/MessageAttribute.pm @@ -115,8 +115,9 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:N033AvWwG2CDBDuTj2unqQ - -# You can replace this text with custom content, and it will be preserved on regeneration +__PACKAGE__->add_columns( + '+takes_days' => { is_boolean => 1 }, +); =head2 koha_object_class diff --git a/Koha/Schema/Result/MessageTransport.pm b/Koha/Schema/Result/MessageTransport.pm index 20037fbdd6..a607a81f50 100644 --- a/Koha/Schema/Result/MessageTransport.pm +++ b/Koha/Schema/Result/MessageTransport.pm @@ -132,8 +132,9 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-05-09 21:01:19 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:v0JbPeSBKkHyINem9W9vxw - -# You can replace this text with custom content, and it will be preserved on regeneration +__PACKAGE__->add_columns( + '+is_digest' => { is_boolean => 1 }, +); =head2 koha_object_class diff --git a/Koha/Schema/Result/OldIssue.pm b/Koha/Schema/Result/OldIssue.pm index e493749b14..aed754cd5a 100644 --- a/Koha/Schema/Result/OldIssue.pm +++ b/Koha/Schema/Result/OldIssue.pm @@ -336,7 +336,8 @@ __PACKAGE__->belongs_to( __PACKAGE__->add_columns( '+auto_renew' => { is_boolean => 1 }, - '+onsite_checkout' => { is_boolean => 1 } + '+noteseen' => { is_boolean => 1 }, + '+onsite_checkout' => { is_boolean => 1 }, ); __PACKAGE__->belongs_to( diff --git a/Koha/Schema/Result/PatronList.pm b/Koha/Schema/Result/PatronList.pm index ccb9fb1d5c..1d824c5aaf 100644 --- a/Koha/Schema/Result/PatronList.pm +++ b/Koha/Schema/Result/PatronList.pm @@ -114,6 +114,8 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+gAlf5GQ7YSgAtFIXgqVWw +__PACKAGE__->add_columns( + '+shared' => { is_boolean => 1 }, +); -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Rating.pm b/Koha/Schema/Result/Rating.pm index a25f1eae72..78ae27d8b2 100644 --- a/Koha/Schema/Result/Rating.pm +++ b/Koha/Schema/Result/Rating.pm @@ -121,6 +121,8 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wUwI/h1WR8kVGMNCrv/tUQ +__PACKAGE__->add_columns( + '+rating_value' => { is_boolean => 1 }, +); -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/SearchField.pm b/Koha/Schema/Result/SearchField.pm index 0ac2626b87..d76f86f963 100644 --- a/Koha/Schema/Result/SearchField.pm +++ b/Koha/Schema/Result/SearchField.pm @@ -184,7 +184,9 @@ __PACKAGE__->has_many( # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/WPJEu04y32zDMr+vnK5og __PACKAGE__->add_columns( - '+mandatory' => { is_boolean => 1 }, + '+mandatory' => { is_boolean => 1 }, + '+opac' => { is_boolean => 1 }, + '+staff_client' => { is_boolean => 1 }, ); __PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map"); diff --git a/Koha/Schema/Result/SearchMarcToField.pm b/Koha/Schema/Result/SearchMarcToField.pm index 1451e3e1b2..9200a711a0 100644 --- a/Koha/Schema/Result/SearchMarcToField.pm +++ b/Koha/Schema/Result/SearchMarcToField.pm @@ -146,9 +146,10 @@ __PACKAGE__->belongs_to( # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rJQhUx0rIc6RVz4HJ5vy/g __PACKAGE__->add_columns( - '+facet' => { is_boolean => 1 }, + '+facet' => { is_boolean => 1 }, + '+search' => { is_boolean => 1 }, + '+sort' => { is_boolean => 1 }, '+suggestible' => { is_boolean => 1 }, - '+sort' => { is_boolean => 1 }, ); 1; diff --git a/Koha/Schema/Result/Subscription.pm b/Koha/Schema/Result/Subscription.pm index bffd28e210..be2df21770 100644 --- a/Koha/Schema/Result/Subscription.pm +++ b/Koha/Schema/Result/Subscription.pm @@ -606,9 +606,10 @@ __PACKAGE__->has_many( ); __PACKAGE__->add_columns( - '+closed' => { is_boolean => 1 }, - '+skip_serialseq' => { is_boolean => 1 }, + '+closed' => { is_boolean => 1 }, + '+manualhistory' => { is_boolean => 1 }, + '+serialsadditems' => { is_boolean => 1 }, + '+skip_serialseq' => { is_boolean => 1 }, ); -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/TransportCost.pm b/Koha/Schema/Result/TransportCost.pm index 9defb97554..beffe576c9 100644 --- a/Koha/Schema/Result/TransportCost.pm +++ b/Koha/Schema/Result/TransportCost.pm @@ -112,6 +112,8 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gMs7dT/xK4ClGqQEHI7HOQ +__PACKAGE__->add_columns( + '+disable_transfer' => { is_boolean => 1 }, +); -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/VendorEdiAccount.pm b/Koha/Schema/Result/VendorEdiAccount.pm index 27e52b8477..8a3d3fa79f 100644 --- a/Koha/Schema/Result/VendorEdiAccount.pm +++ b/Koha/Schema/Result/VendorEdiAccount.pm @@ -275,6 +275,12 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-19 16:25:44 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jenUF3Wx7J7F5270mLQMbw +__PACKAGE__->add_columns( + '+auto_orders' => { is_boolean => 1 }, + '+invoices_enabled' => { is_boolean => 1 }, + '+orders_enabled' => { is_boolean => 1 }, + '+quotes_enabled' => { is_boolean => 1 }, + '+responses_enabled' => { is_boolean => 1 }, +); -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1;