From c6c4cc2739ba78e995b81ebdcb75d0cdb916e53c Mon Sep 17 00:00:00 2001 From: Alex Sassmannshausen Date: Mon, 12 Dec 2016 15:01:13 +0100 Subject: [PATCH] DO NOT PUSH: Updated Branchtransfer schema. * Koha/Schema/Result/Branchtransfer.pm: Newly generated. https://bugs.koha-community.org/show_bug.cgi?id=14187 --- Koha/Schema/Result/Branchtransfer.pm | 47 ++++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/Koha/Schema/Result/Branchtransfer.pm b/Koha/Schema/Result/Branchtransfer.pm index 958c506..8082967 100644 --- a/Koha/Schema/Result/Branchtransfer.pm +++ b/Koha/Schema/Result/Branchtransfer.pm @@ -1,17 +1,21 @@ +use utf8; package Koha::Schema::Result::Branchtransfer; # Created by DBIx::Class::Schema::Loader # DO NOT MODIFY THE FIRST PART OF THIS FILE +=head1 NAME + +Koha::Schema::Result::Branchtransfer + +=cut + use strict; use warnings; use base 'DBIx::Class::Core'; - -=head1 NAME - -Koha::Schema::Result::Branchtransfer +=head1 TABLE: C =cut @@ -108,6 +112,17 @@ __PACKAGE__->add_columns( "comments", { data_type => "mediumtext", is_nullable => 1 }, ); + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + __PACKAGE__->set_primary_key("branchtransfer_id"); =head1 RELATIONS @@ -127,39 +142,39 @@ __PACKAGE__->belongs_to( { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, ); -=head2 tobranch +=head2 itemnumber Type: belongs_to -Related object: L +Related object: L =cut __PACKAGE__->belongs_to( - "tobranch", - "Koha::Schema::Result::Branch", - { branchcode => "tobranch" }, + "itemnumber", + "Koha::Schema::Result::Item", + { itemnumber => "itemnumber" }, { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, ); -=head2 itemnumber +=head2 tobranch Type: belongs_to -Related object: L +Related object: L =cut __PACKAGE__->belongs_to( - "itemnumber", - "Koha::Schema::Result::Item", - { itemnumber => "itemnumber" }, + "tobranch", + "Koha::Schema::Result::Branch", + { branchcode => "tobranch" }, { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, ); -# Created by DBIx::Class::Schema::Loader v0.07010 @ 2015-05-27 18:14:12 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IKdPAJHJdYM3MHxnj6Mxzg +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-12-12 13:56:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:h35JNhhGAsTs+20SV6HgtA # You can replace this text with custom content, and it will be preserved on regeneration -- 2.10.2