From cb5d44e2f14dd0f74557999987c6942841d2503c Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 13 Apr 2017 13:53:37 +0200 Subject: [PATCH] Bug 18427: DBIx schema changes Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- Koha/Schema/Result/Serialitem.pm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Koha/Schema/Result/Serialitem.pm b/Koha/Schema/Result/Serialitem.pm index 6f805d39c7..9a7056335a 100644 --- a/Koha/Schema/Result/Serialitem.pm +++ b/Koha/Schema/Result/Serialitem.pm @@ -44,9 +44,7 @@ __PACKAGE__->add_columns( { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, ); -=head1 UNIQUE CONSTRAINTS - -=head2 C +=head1 PRIMARY KEY =over 4 @@ -56,7 +54,7 @@ __PACKAGE__->add_columns( =cut -__PACKAGE__->add_unique_constraint("serialitemsidx", ["itemnumber"]); +__PACKAGE__->set_primary_key("itemnumber"); =head1 RELATIONS @@ -91,8 +89,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JZcKy2QIB2c39vgpntWahQ +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-04-13 13:53:21 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Z43jqmURevaJeui7l8ThlQ # You can replace this text with custom content, and it will be preserved on regeneration -- 2.39.5