Bug 39835: Add is_boolean for tinyint(1)

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2025-05-05 16:23:24 +02:00 committed by Katrin Fischer
parent fcf679b920
commit 9e45ef028f
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
33 changed files with 141 additions and 55 deletions

View File

@ -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;

View File

@ -168,6 +168,7 @@ __PACKAGE__->has_many(
__PACKAGE__->add_columns(
'+repeatable' => { is_boolean => 1 },
'+searchable' => { is_boolean => 1 },
);
1;

View File

@ -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.

View File

@ -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;

View File

@ -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.

View File

@ -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(

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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;

View File

@ -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.

View File

@ -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;

View File

@ -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;

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -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

View File

@ -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.

View File

@ -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;

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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(

View File

@ -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;

View File

@ -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;

View File

@ -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");

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;