Bugzilla – Attachment 29931 Details for
Bug 9011
Add the ability to store the last patron to return an item
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9011 [QA Followup 3] - Update database schema files
Bug-9011-QA-Followup-3---Update-database-schema-fi.patch (text/plain), 3.31 KB, created by
Kyle M Hall (khall)
on 2014-07-21 15:33:50 UTC
(
hide
)
Description:
Bug 9011 [QA Followup 3] - Update database schema files
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-07-21 15:33:50 UTC
Size:
3.31 KB
patch
obsolete
>From 56764f4f34e54248320db7e11fa235dc4b8f9bfa Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 21 Jul 2014 11:33:21 -0400 >Subject: [PATCH] Bug 9011 [QA Followup 3] - Update database schema files > >--- > C4/Circulation.pm | 3 +-- > Koha/Schema/Result/Issue.pm | 24 ++++++++++++++++++++++-- > Koha/Schema/Result/OldIssue.pm | 24 ++++++++++++++++++++++-- > 3 files changed, 45 insertions(+), 6 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index f765086..e0002c9 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -3789,8 +3789,7 @@ sub AnonymizeItemIssueHistory { > } > > if ( $oi && $oi->borrower()->privacy() == 2 ) { >- $oi->set_column( 'borrowernumber', $a ); >- $oi->update(); >+ $oi->update( { 'borrowernumber' => $a } ); > } > } > >diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm >index 2b3e3fd..2d6b867 100644 >--- a/Koha/Schema/Result/Issue.pm >+++ b/Koha/Schema/Result/Issue.pm >@@ -23,6 +23,12 @@ __PACKAGE__->table("issues"); > > =head1 ACCESSORS > >+=head2 issue_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ > =head2 borrowernumber > > data_type: 'integer' >@@ -92,6 +98,8 @@ __PACKAGE__->table("issues"); > =cut > > __PACKAGE__->add_columns( >+ "issue_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, > "borrowernumber", > { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, > "itemnumber", >@@ -137,6 +145,18 @@ __PACKAGE__->add_columns( > }, > ); > >+=head1 PRIMARY KEY >+ >+=over 4 >+ >+=item * L</issue_id> >+ >+=back >+ >+=cut >+ >+__PACKAGE__->set_primary_key("issue_id"); >+ > =head1 RELATIONS > > =head2 borrowernumber >@@ -180,8 +200,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2SJJ3az4Ml9hKEQvNH3+Kw >+# Created by DBIx::Class::Schema::Loader v0.07040 @ 2014-07-21 11:04:23 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:edKldSv9Wx8jFrfA7jfTnw > > __PACKAGE__->belongs_to( > "borrower", >diff --git a/Koha/Schema/Result/OldIssue.pm b/Koha/Schema/Result/OldIssue.pm >index 6105731..acc9ad3 100644 >--- a/Koha/Schema/Result/OldIssue.pm >+++ b/Koha/Schema/Result/OldIssue.pm >@@ -23,6 +23,12 @@ __PACKAGE__->table("old_issues"); > > =head1 ACCESSORS > >+=head2 issue_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ > =head2 borrowernumber > > data_type: 'integer' >@@ -92,6 +98,8 @@ __PACKAGE__->table("old_issues"); > =cut > > __PACKAGE__->add_columns( >+ "issue_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, > "borrowernumber", > { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, > "itemnumber", >@@ -137,6 +145,18 @@ __PACKAGE__->add_columns( > }, > ); > >+=head1 PRIMARY KEY >+ >+=over 4 >+ >+=item * L</issue_id> >+ >+=back >+ >+=cut >+ >+__PACKAGE__->set_primary_key("issue_id"); >+ > =head1 RELATIONS > > =head2 borrowernumber >@@ -180,8 +200,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sgsDHihVYHrTycbaqoGbaQ >+# Created by DBIx::Class::Schema::Loader v0.07040 @ 2014-07-21 11:04:23 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:i+abQcASmLxXKsJPwJCcjQ > > __PACKAGE__->belongs_to( > "borrower", >-- >1.7.2.5
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 9011
:
13258
|
15117
|
15200
|
16666
|
16763
|
16773
|
18676
|
20180
|
20181
|
20329
|
20342
|
20343
|
20344
|
22577
|
22578
|
22579
|
25866
|
25867
|
25868
|
25869
|
25870
|
25871
|
25872
|
25873
|
28923
|
28924
|
28925
|
29301
|
29745
|
29749
|
29750
|
29930
|
29931
|
30979
|
30993
|
30994
|
30995
|
30996
|
30997
|
30998
|
30999
|
32430
|
32431
|
32432
|
32433
|
32434
|
32435
|
32436
|
32437
|
32438
|
32439
|
32440
|
32441
|
32442
|
32443
|
32977
|
37113
|
37114
|
37115
|
37116
|
37117
|
38441
|
38442
|
38443
|
38444
|
38445
|
39812
|
39813
|
39814
|
39815
|
39816