Bugzilla – Attachment 59071 Details for
Bug 17813
Table borrower_attributes needs a primary key
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17813: DBIC update
Bug-17813-DBIC-update.patch (text/plain), 1.83 KB, created by
Jonathan Druart
on 2017-01-17 08:27:39 UTC
(
hide
)
Description:
Bug 17813: DBIC update
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-01-17 08:27:39 UTC
Size:
1.83 KB
patch
obsolete
>From aa879b3d4ddf82d1f335a389662a5ea4bbc01dc7 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 23 Dec 2016 15:57:54 -0300 >Subject: [PATCH] Bug 17813: DBIC update > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Schema/Result/BorrowerAttribute.pm | 24 ++++++++++++++++++++++-- > 1 file changed, 22 insertions(+), 2 deletions(-) > >diff --git a/Koha/Schema/Result/BorrowerAttribute.pm b/Koha/Schema/Result/BorrowerAttribute.pm >index 1406135..45ce0bf 100644 >--- a/Koha/Schema/Result/BorrowerAttribute.pm >+++ b/Koha/Schema/Result/BorrowerAttribute.pm >@@ -23,6 +23,12 @@ __PACKAGE__->table("borrower_attributes"); > > =head1 ACCESSORS > >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ > =head2 borrowernumber > > data_type: 'integer' >@@ -45,6 +51,8 @@ __PACKAGE__->table("borrower_attributes"); > =cut > > __PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, > "borrowernumber", > { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, > "code", >@@ -53,6 +61,18 @@ __PACKAGE__->add_columns( > { data_type => "varchar", is_nullable => 1, size => 255 }, > ); > >+=head1 PRIMARY KEY >+ >+=over 4 >+ >+=item * L</id> >+ >+=back >+ >+=cut >+ >+__PACKAGE__->set_primary_key("id"); >+ > =head1 RELATIONS > > =head2 borrowernumber >@@ -86,8 +106,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-25 18:09:15 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GfEFw+6mgaFw6Q8dktPtGw >+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-12-08 04:41:27 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EarETnedFsmRmAAJAUrKGg > > > # You can replace this text with custom content, and it will be preserved on regeneration >-- >2.1.4
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 17813
:
58422
|
58423
|
58493
|
58494
|
58879
|
59070
| 59071 |
59072