From 6a5ca69bca091869773863b4436b78f3956589ec Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 28 Sep 2015 12:09:40 -0300 Subject: [PATCH] Bug 14368: (RM followup) DBIx update Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/Discharge.pm | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/Discharge.pm b/Koha/Schema/Result/Discharge.pm index 8f9c60c..2a68785 100644 --- a/Koha/Schema/Result/Discharge.pm +++ b/Koha/Schema/Result/Discharge.pm @@ -23,6 +23,12 @@ __PACKAGE__->table("discharges"); =head1 ACCESSORS +=head2 discharge_id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + =head2 borrower data_type: 'integer' @@ -44,6 +50,8 @@ __PACKAGE__->table("discharges"); =cut __PACKAGE__->add_columns( + "discharge_id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, "borrower", { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, "needed", @@ -60,6 +68,18 @@ __PACKAGE__->add_columns( }, ); +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->set_primary_key("discharge_id"); + =head1 RELATIONS =head2 borrower @@ -83,8 +103,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-01-08 18:15:13 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uq7Zb0SNf2mD3cpC4oub9A +# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-09-28 12:09:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Wc3EkS92v98jXtena5VaUQ # You can replace this text with custom code or comments, and it will be preserved on regeneration -- 2.5.3