From 6dd7fb7b19ba9417ff8939ed01618ef3d328d825 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 20 Apr 2017 13:46:35 -0300 Subject: [PATCH] Bug 14424: DBIC Schema changes https://bugs.koha-community.org/show_bug.cgi?id=14224 Signed-off-by: Kyle M Hall --- Koha/Schema/Result/Issue.pm | 23 +++++++++++++++++++++-- Koha/Schema/Result/OldIssue.pm | 23 +++++++++++++++++++++-- 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm index ffdc50d928..eb11d37f26 100644 --- a/Koha/Schema/Result/Issue.pm +++ b/Koha/Schema/Result/Issue.pm @@ -95,6 +95,17 @@ __PACKAGE__->table("issues"); default_value: 0 is_nullable: 0 +=head2 note + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 notedate + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + =cut __PACKAGE__->add_columns( @@ -143,6 +154,14 @@ __PACKAGE__->add_columns( }, "onsite_checkout", { data_type => "integer", default_value => 0, is_nullable => 0 }, + "note", + { data_type => "mediumtext", is_nullable => 1 }, + "notedate", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, ); =head1 PRIMARY KEY @@ -214,8 +233,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-07 14:25:37 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8jFZATc7tlK4Qb5YW8yrrw +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-04-27 19:03:43 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3GAOBprPziYcGJF2A5xReg __PACKAGE__->belongs_to( "borrower", diff --git a/Koha/Schema/Result/OldIssue.pm b/Koha/Schema/Result/OldIssue.pm index 025afd7032..8aeff7d058 100644 --- a/Koha/Schema/Result/OldIssue.pm +++ b/Koha/Schema/Result/OldIssue.pm @@ -94,6 +94,17 @@ __PACKAGE__->table("old_issues"); default_value: 0 is_nullable: 0 +=head2 note + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 notedate + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + =cut __PACKAGE__->add_columns( @@ -142,6 +153,14 @@ __PACKAGE__->add_columns( }, "onsite_checkout", { data_type => "integer", default_value => 0, is_nullable => 0 }, + "note", + { data_type => "mediumtext", is_nullable => 1 }, + "notedate", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, ); =head1 PRIMARY KEY @@ -199,8 +218,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-07 14:25:37 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Nqm7crVG/Y5G3kuLAAKdSQ +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-04-27 19:03:43 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5K7XiVMbAtr3q4GPqKrWOA sub koha_objects_class { 'Koha::Old::Checkouts'; -- 2.39.2