From 17b44ff99245b3f8086dc3db0a1a058d3f8c1a7a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 9 Mar 2017 15:53:49 -0300 Subject: [PATCH] Bug 18185: [SOLUTION 1]Schema changes --- Koha/Schema/Result/OldIssue.pm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/OldIssue.pm b/Koha/Schema/Result/OldIssue.pm index 5f8491f..856b5ec 100644 --- a/Koha/Schema/Result/OldIssue.pm +++ b/Koha/Schema/Result/OldIssue.pm @@ -23,6 +23,12 @@ __PACKAGE__->table("old_issues"); =head1 ACCESSORS +=head2 id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + =head2 issue_id data_type: 'integer' @@ -103,6 +109,8 @@ __PACKAGE__->table("old_issues"); =cut __PACKAGE__->add_columns( + "id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, "issue_id", { data_type => "integer", is_nullable => 0 }, "borrowernumber", @@ -156,13 +164,13 @@ __PACKAGE__->add_columns( =over 4 -=item * L +=item * L =back =cut -__PACKAGE__->set_primary_key("issue_id"); +__PACKAGE__->set_primary_key("id"); =head1 RELATIONS @@ -207,8 +215,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-04-23 13:04:51 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9GdzytyInRcFZns/q0qb3Q +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-09 15:35:19 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4N/RnY1dwjY/b2iMAdAXzQ sub koha_objects_class { 'Koha::Old::Checkouts'; -- 2.9.3