From f88b2606ba91350c4872576c6f3b54d0edf1829d Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 10 May 2023 14:06:52 -0300 Subject: [PATCH] Bug 33053: DBIC schema Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/ItemGroup.pm | 12 +++--------- Koha/Schema/Result/Recall.pm | 12 +++--------- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/Koha/Schema/Result/ItemGroup.pm b/Koha/Schema/Result/ItemGroup.pm index ce1f9e0ef7..96d04e62ae 100644 --- a/Koha/Schema/Result/ItemGroup.pm +++ b/Koha/Schema/Result/ItemGroup.pm @@ -34,7 +34,6 @@ id for the items group =head2 biblio_id data_type: 'integer' - default_value: 0 is_foreign_key: 1 is_nullable: 0 @@ -78,12 +77,7 @@ __PACKAGE__->add_columns( "item_group_id", { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, "biblio_id", - { - data_type => "integer", - default_value => 0, - is_foreign_key => 1, - is_nullable => 0, - }, + { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "display_order", { data_type => "integer", default_value => 0, is_nullable => 0 }, "description", @@ -178,8 +172,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-04 22:42:42 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:q2LTnircvx4khvkVm9eIsQ +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-10 17:06:39 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OPwObeUEFgzNwMYlEgHkQw sub koha_objects_class { 'Koha::Biblio::ItemGroups'; diff --git a/Koha/Schema/Result/Recall.pm b/Koha/Schema/Result/Recall.pm index 8d3bd14005..6bc3cbb855 100644 --- a/Koha/Schema/Result/Recall.pm +++ b/Koha/Schema/Result/Recall.pm @@ -51,7 +51,6 @@ Date the recall was requested =head2 biblio_id data_type: 'integer' - default_value: 0 is_foreign_key: 1 is_nullable: 0 @@ -165,12 +164,7 @@ __PACKAGE__->add_columns( is_nullable => 1, }, "biblio_id", - { - data_type => "integer", - default_value => 0, - is_foreign_key => 1, - is_nullable => 0, - }, + { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "pickup_library_id", { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, "completed_date", @@ -312,8 +306,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-04-29 11:14:14 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lUgwwMxaStiOS7pHL0UGJA +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-10 17:06:39 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PHc8RtTZ7G02D0ZW4wrPGQ __PACKAGE__->add_columns( '+completed' => { is_boolean => 1 }, -- 2.39.5