From d6275b331532b68b8d6404892b036b94116e44fe Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 12 Oct 2023 11:08:12 +0000 Subject: [PATCH] Bug 35044: [DONT PUSH] dbic specific --- Koha/Schema/Result/AdditionalField.pm | 10 ++++++++++ Koha/Schema/Result/AdditionalFieldValue.pm | 20 ++------------------ 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/Koha/Schema/Result/AdditionalField.pm b/Koha/Schema/Result/AdditionalField.pm index 12474f7eca..afdd77cc2e 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 diff --git a/Koha/Schema/Result/AdditionalFieldValue.pm b/Koha/Schema/Result/AdditionalFieldValue.pm index b3f1b7c41e..0014a258e6 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.07049 @ 2023-10-12 13:43:00 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pNawYmJgeb/tIo17nLM/Zw # You can replace this text with custom code or comments, and it will be preserved on regeneration -- 2.30.2