Bugzilla – Attachment 102880 Details for
Bug 22887
authorised_values is missing a unique constraint on category + authorised_value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22887: Schema changes
Bug-22887-Schema-changes.patch (text/plain), 1.37 KB, created by
Katrin Fischer
on 2020-04-13 17:32:19 UTC
(
hide
)
Description:
Bug 22887: Schema changes
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-04-13 17:32:19 UTC
Size:
1.37 KB
patch
obsolete
>From e45528dd93ffae2b913b0ff1d0c4ce8ea024017c Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >Date: Tue, 7 Apr 2020 11:47:44 +0000 >Subject: [PATCH] Bug 22887: Schema changes > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > Koha/Schema/Result/AuthorisedValue.pm | 20 ++++++++++++++++++-- > 1 file changed, 18 insertions(+), 2 deletions(-) > >diff --git a/Koha/Schema/Result/AuthorisedValue.pm b/Koha/Schema/Result/AuthorisedValue.pm >index 1a65d388c9..90d754e595 100644 >--- a/Koha/Schema/Result/AuthorisedValue.pm >+++ b/Koha/Schema/Result/AuthorisedValue.pm >@@ -97,6 +97,22 @@ __PACKAGE__->add_columns( > > __PACKAGE__->set_primary_key("id"); > >+=head1 UNIQUE CONSTRAINTS >+ >+=head2 C<av_uniq> >+ >+=over 4 >+ >+=item * L</category> >+ >+=item * L</authorised_value> >+ >+=back >+ >+=cut >+ >+__PACKAGE__->add_unique_constraint("av_uniq", ["category", "authorised_value"]); >+ > =head1 RELATIONS > > =head2 authorised_values_branches >@@ -145,8 +161,8 @@ __PACKAGE__->has_many( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-02-22 14:32:48 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hDlebhEn+f+thqwBo/LOqQ >+# Created by DBIx::Class::Schema::Loader v0.07048 @ 2020-04-07 11:23:19 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6MjWlDqdpIOwsJlyjQawAg > > > # You can replace this text with custom code or comments, and it will be preserved on regeneration >-- >2.11.0
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 22887
:
89550
|
101790
|
101791
|
101792
|
101793
|
101889
|
101890
|
101891
|
101892
|
102409
|
102410
|
102411
|
102412
|
102511
|
102876
|
102877
|
102878
|
102879
| 102880 |
102898
|
102939
|
102999
|
103000