From 234262fae33a73d96d9c04e1ede0a48eca1fd5d2 Mon Sep 17 00:00:00 2001 From: Lari Taskula Date: Tue, 7 Apr 2020 11:47:44 +0000 Subject: [PATCH] Bug 22887: Schema changes Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- 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 + +=over 4 + +=item * L + +=item * L + +=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.39.5