From 5977dedb945b274e86d225cb7e14549965cc9305 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sun, 18 Feb 2018 16:44:51 -0300 Subject: [PATCH] Bug 17672: DBIC Schema changes Signed-off-by: Jonathan Druart --- Koha/Schema/Result/Deleteditem.pm | 16 ++++++++++++++-- Koha/Schema/Result/Item.pm | 16 ++++++++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Deleteditem.pm b/Koha/Schema/Result/Deleteditem.pm index a2cc3db7f7..2eff4e9b36 100644 --- a/Koha/Schema/Result/Deleteditem.pm +++ b/Koha/Schema/Result/Deleteditem.pm @@ -111,6 +111,12 @@ __PACKAGE__->table("deleteditems"); default_value: 0 is_nullable: 0 +=head2 damaged_on + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + =head2 itemlost data_type: 'tinyint' @@ -309,6 +315,12 @@ __PACKAGE__->add_columns( { data_type => "tinyint", default_value => 0, is_nullable => 0 }, "damaged", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "damaged_on", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, "itemlost", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, "itemlost_on", @@ -395,8 +407,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("itemnumber"); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RaHchgIC64wq0q4MXqEITA +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-18 16:41:11 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xb11fPjp5PyXU7yfFWHycw # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index 4161770fd0..cee25520cc 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -114,6 +114,12 @@ __PACKAGE__->table("items"); default_value: 0 is_nullable: 0 +=head2 damaged_on + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + =head2 itemlost data_type: 'tinyint' @@ -323,6 +329,12 @@ __PACKAGE__->add_columns( { data_type => "tinyint", default_value => 0, is_nullable => 0 }, "damaged", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "damaged_on", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, "itemlost", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, "itemlost_on", @@ -675,8 +687,8 @@ __PACKAGE__->might_have( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:50sZaqt8I9HG2reLqzSSVQ +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-18 16:41:12 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CrNXvpDUvvcuPZK2Gfzs/Q __PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );