From 312891ad8faaa6003db101ad9f86bd34630bd707 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 | 14 ++++++++++++-- Koha/Schema/Result/AdditionalFieldValue.pm | 20 ++------------------ 2 files changed, 14 insertions(+), 20 deletions(-) diff --git a/Koha/Schema/Result/AdditionalField.pm b/Koha/Schema/Result/AdditionalField.pm index 40cd8a506f..75aaee66cf 100644 --- a/Koha/Schema/Result/AdditionalField.pm +++ b/Koha/Schema/Result/AdditionalField.pm @@ -84,6 +84,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( @@ -106,6 +114,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 @@ -154,8 +164,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-15 17:35:48 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:q1mpEq5S0nZAOVXHqz+hEQ +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-12 13:43:00 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3HuOXYOGUUoNtVAgAWqu8Q # You can replace this text with custom code or comments, and it will be preserved on regeneration 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