Bugzilla – Attachment 158498 Details for
Bug 35044
Additional fields: Allow for repeatable fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35044: [DONT PUSH] dbic specific
Bug-35044-DONT-PUSH-dbic-specific.patch (text/plain), 2.08 KB, created by
Pedro Amorim
on 2023-11-06 10:57:42 UTC
(
hide
)
Description:
Bug 35044: [DONT PUSH] dbic specific
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-11-06 10:57:42 UTC
Size:
2.08 KB
patch
obsolete
>From d6275b331532b68b8d6404892b036b94116e44fe Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >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<field_record> >- >-=over 4 >- >-=item * L</field_id> >- >-=item * L</record_id> >- >-=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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35044
:
157324
|
157325
|
157326
|
157327
|
157328
|
157329
|
157330
|
157331
|
157332
|
157333
|
157334
|
158113
|
158498
|
158499
|
158500
|
158501
|
158502
|
158503
|
158504
|
158505
|
158506
|
158507
|
158508
|
158857
|
158858
|
158859
|
158860
|
158861
|
158862
|
158863
|
158864
|
158865
|
158866
|
158867
|
158868
|
159268
|
160177
|
160178
|
160179
|
160180
|
160181
|
160182
|
160183
|
160184
|
160185
|
160186
|
160187
|
160188
|
160189
|
164162
|
164163
|
164164
|
164165
|
164166
|
164167
|
164168
|
164169
|
164170
|
164171
|
164172
|
164173
|
164174