Bugzilla – Attachment 58124 Details for
Bug 14187
branchtransfer needs a primary key (id) for DBIx and common sense.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
DO NOT PUSH: Updated Branchtransfer schema.
DO-NOT-PUSH-Updated-Branchtransfer-schema.patch (text/plain), 2.69 KB, created by
Alex Sassmannshausen
on 2016-12-12 14:23:12 UTC
(
hide
)
Description:
DO NOT PUSH: Updated Branchtransfer schema.
Filename:
MIME Type:
Creator:
Alex Sassmannshausen
Created:
2016-12-12 14:23:12 UTC
Size:
2.69 KB
patch
obsolete
>From c6c4cc2739ba78e995b81ebdcb75d0cdb916e53c Mon Sep 17 00:00:00 2001 >From: Alex Sassmannshausen <alex.sassmannshausen@ptfs-europe.com> >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<branchtransfers> > > =cut > >@@ -108,6 +112,17 @@ __PACKAGE__->add_columns( > "comments", > { data_type => "mediumtext", is_nullable => 1 }, > ); >+ >+=head1 PRIMARY KEY >+ >+=over 4 >+ >+=item * L</branchtransfer_id> >+ >+=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<Koha::Schema::Result::Branch> >+Related object: L<Koha::Schema::Result::Item> > > =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<Koha::Schema::Result::Item> >+Related object: L<Koha::Schema::Result::Branch> > > =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
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 14187
:
39058
|
39059
|
39060
|
40075
|
58121
|
58123
|
58124
|
58646
|
58730
|
58880
|
58881
|
58882