From 8f834c4bd3ee378774f4495e8de32c8df53f3bd8 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 23 Aug 2024 15:48:30 +0000 Subject: [PATCH] Bug 35044: DBIC schema update Includes a checksum update for Deleteditem and Item caused by a previous manual fix. Signed-off-by: Katrin Fischer --- Koha/Schema/Result/AdditionalField.pm | 14 ++++++++++++-- Koha/Schema/Result/AdditionalFieldValue.pm | 20 ++------------------ Koha/Schema/Result/Deleteditem.pm | 4 ++-- Koha/Schema/Result/Item.pm | 4 ++-- 4 files changed, 18 insertions(+), 24 deletions(-) diff --git a/Koha/Schema/Result/AdditionalField.pm b/Koha/Schema/Result/AdditionalField.pm index c5396e8ea1..51e184d5ff 100644 --- a/Koha/Schema/Result/AdditionalField.pm +++ b/Koha/Schema/Result/AdditionalField.pm @@ -83,6 +83,14 @@ mode of operation (get or set) for marcfield is the field searchable? +=head2 repeatable + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +is the field repeatable? + =cut __PACKAGE__->add_columns( @@ -105,6 +113,8 @@ __PACKAGE__->add_columns( }, "searchable", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "repeatable", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); =head1 PRIMARY KEY @@ -153,8 +163,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-11-03 17:19:32 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fnWeynuQnePWYM90CJKZ5Q +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-08-23 15:47:56 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8ZpUf0l+6h44AHDf7eV/1g __PACKAGE__->add_columns( '+repeatable' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/AdditionalFieldValue.pm b/Koha/Schema/Result/AdditionalFieldValue.pm index b3f1b7c41e..36703647a9 100644 --- a/Koha/Schema/Result/AdditionalFieldValue.pm +++ b/Koha/Schema/Result/AdditionalFieldValue.pm @@ -80,22 +80,6 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("id"); -=head1 UNIQUE CONSTRAINTS - -=head2 C - -=over 4 - -=item * L - -=item * L - -=back - -=cut - -__PACKAGE__->add_unique_constraint("field_record", ["field_id", "record_id"]); - =head1 RELATIONS =head2 field @@ -114,8 +98,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:6Y4sBMbKYSbGN7fAy7OhEQ +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-08-23 15:47:56 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0XP6wuopWZEao4nJd4PF5g # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Deleteditem.pm b/Koha/Schema/Result/Deleteditem.pm index 49a47984c8..a681163b1e 100644 --- a/Koha/Schema/Result/Deleteditem.pm +++ b/Koha/Schema/Result/Deleteditem.pm @@ -532,8 +532,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("itemnumber"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-26 13:26:37 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:13COB8Ty6QDInmxN/zvEig +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-08-23 15:47:56 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YYwxdwFVXmG0NJ0oFd8bUg __PACKAGE__->add_columns( '+bookable' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index 1b3612b8ee..444d3a5097 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -992,8 +992,8 @@ __PACKAGE__->might_have( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-26 13:26:37 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8BzPWv3gqdhfLNz+Il93cw +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-08-23 15:47:56 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5OoZ3tUXC5pzN5JXWWu7fA __PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" ); -- 2.39.5