From 0668dd7a8dbf2b34d8a93454bebf93dde44de38f Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 19 Dec 2013 06:29:25 +0000 Subject: [PATCH] Bug 9673: (follow-up) update DBIx::Class schema classes Signed-off-by: Galen Charlton --- Koha/Schema/Result/Deleteditem.pm | 28 ++++++++++++++++++++++++++-- Koha/Schema/Result/Item.pm | 28 ++++++++++++++++++++++++++-- 2 files changed, 52 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Deleteditem.pm b/Koha/Schema/Result/Deleteditem.pm index 7beae1bd35..60da7f72b4 100644 --- a/Koha/Schema/Result/Deleteditem.pm +++ b/Koha/Schema/Result/Deleteditem.pm @@ -117,12 +117,24 @@ __PACKAGE__->table("deleteditems"); default_value: 0 is_nullable: 0 +=head2 itemlost_on + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + =head2 withdrawn data_type: 'tinyint' default_value: 0 is_nullable: 0 +=head2 withdrawn_on + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + =head2 itemcallnumber data_type: 'varchar' @@ -293,8 +305,20 @@ __PACKAGE__->add_columns( { data_type => "tinyint", default_value => 0, is_nullable => 0 }, "itemlost", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "itemlost_on", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, "withdrawn", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "withdrawn_on", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, "itemcallnumber", { data_type => "varchar", is_nullable => 1, size => 255 }, "coded_location_qualifier", @@ -363,8 +387,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("itemnumber"); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-11-27 17:52:57 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VssrrcYczPsiDBrtbsipIw +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-12-19 06:29:02 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ubx5Wo+R5/opc9kdIc7IWQ # 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 055f8013df..4e46ac7b5f 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -119,12 +119,24 @@ __PACKAGE__->table("items"); default_value: 0 is_nullable: 0 +=head2 itemlost_on + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + =head2 withdrawn data_type: 'tinyint' default_value: 0 is_nullable: 0 +=head2 withdrawn_on + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + =head2 itemcallnumber data_type: 'varchar' @@ -296,8 +308,20 @@ __PACKAGE__->add_columns( { data_type => "tinyint", default_value => 0, is_nullable => 0 }, "itemlost", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "itemlost_on", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, "withdrawn", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "withdrawn_on", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, "itemcallnumber", { data_type => "varchar", is_nullable => 1, size => 255 }, "coded_location_qualifier", @@ -585,8 +609,8 @@ __PACKAGE__->might_have( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JV1Q/UVlKQ6QgVFMGBIZCw +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-12-19 06:29:02 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:h6fPG62SifJ5T8QKPZNBBw __PACKAGE__->belongs_to( "biblio", -- 2.39.5