Bugzilla – Attachment 103734 Details for
Bug 22630
Add ability to change the homebranch in course reserves
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22630: Update Koha::Schema::Result::CourseItem
Bug-22630-Update-KohaSchemaResultCourseItem.patch (text/plain), 2.86 KB, created by
Katrin Fischer
on 2020-04-27 06:31:52 UTC
(
hide
)
Description:
Bug 22630: Update Koha::Schema::Result::CourseItem
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-04-27 06:31:52 UTC
Size:
2.86 KB
patch
obsolete
>From 399146e21e0ac8249b2a44625eaf4d2f9f64db80 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 24 Apr 2020 10:58:07 +0200 >Subject: [PATCH] Bug 22630: Update Koha::Schema::Result::CourseItem > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > Koha/Schema/Result/CourseItem.pm | 70 ++++++++++++++++++++++++++++++++++++++-- > 1 file changed, 68 insertions(+), 2 deletions(-) > >diff --git a/Koha/Schema/Result/CourseItem.pm b/Koha/Schema/Result/CourseItem.pm >index 4f78d24cdb..e1654ec8ee 100644 >--- a/Koha/Schema/Result/CourseItem.pm >+++ b/Koha/Schema/Result/CourseItem.pm >@@ -71,6 +71,26 @@ __PACKAGE__->table("course_items"); > is_nullable: 1 > size: 80 > >+=head2 homebranch >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ size: 10 >+ >+=head2 homebranch_enabled >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 homebranch_storage >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ size: 10 >+ > =head2 holdingbranch > > data_type: 'varchar' >@@ -141,6 +161,12 @@ __PACKAGE__->add_columns( > { data_type => "tinyint", default_value => 0, is_nullable => 0 }, > "ccode_storage", > { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "homebranch", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, >+ "homebranch_enabled", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "homebranch_storage", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, > "holdingbranch", > { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, > "holdingbranch_enabled", >@@ -232,6 +258,46 @@ __PACKAGE__->belongs_to( > }, > ); > >+=head2 homebranch >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "homebranch", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "homebranch" }, >+ { >+ is_deferrable => 1, >+ join_type => "LEFT", >+ on_delete => "CASCADE", >+ on_update => "CASCADE", >+ }, >+); >+ >+=head2 homebranch_storage >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "homebranch_storage", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "homebranch_storage" }, >+ { >+ is_deferrable => 1, >+ join_type => "LEFT", >+ on_delete => "CASCADE", >+ on_update => "CASCADE", >+ }, >+); >+ > =head2 itemnumber > > Type: belongs_to >@@ -248,8 +314,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-19 16:07:13 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8tTH0fAzewvaXRYs8+VZcg >+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-04-24 10:54:54 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cXNlGAgIZMs+Id7/FJSBRQ > > __PACKAGE__->add_columns( > '+itype_enabled' => { is_boolean => 1 }, >-- >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 22630
:
87355
|
87369
|
89037
|
89741
|
89742
|
89743
|
90023
|
90024
|
90025
|
90026
|
90027
|
90028
|
91177
|
91178
|
91179
|
91180
|
91575
|
91576
|
91577
|
91578
|
92579
|
92580
|
92603
|
92604
|
103556
|
103634
|
103635
|
103733
| 103734 |
103735
|
103736
|
105324