From ba404f2ba93a4c79c55ea9977848bb889d5c97b7 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 1 Aug 2022 14:33:29 -0300 Subject: [PATCH] Bug 30392: DBIC update Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/Deleteditem.pm | 18 ++++++++++++++++-- Koha/Schema/Result/Item.pm | 18 ++++++++++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Deleteditem.pm b/Koha/Schema/Result/Deleteditem.pm index 12c8900c5a..8ccb4d4499 100644 --- a/Koha/Schema/Result/Deleteditem.pm +++ b/Koha/Schema/Result/Deleteditem.pm @@ -255,6 +255,14 @@ foreign key from the branches table for the library that is currently in possess date and time this item was last altered +=head2 deleted_on + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +date/time of deletion + =head2 location data_type: 'varchar' @@ -450,6 +458,12 @@ __PACKAGE__->add_columns( default_value => \"current_timestamp", is_nullable => 0, }, + "deleted_on", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, "location", { data_type => "varchar", is_nullable => 1, size => 80 }, "permanent_location", @@ -495,8 +509,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("itemnumber"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ytND0t16cwo9dseU+JZSGQ +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-01 17:33:12 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RMuehNvH+0WSXxEurJks/g __PACKAGE__->add_columns( '+exclude_from_local_holds_priority' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index 9a6c397a3b..55d33e4a19 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -259,6 +259,14 @@ foreign key from the branches table for the library that is currently in possess date and time this item was last altered +=head2 deleted_on + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +date/time of deletion + =head2 location data_type: 'varchar' @@ -464,6 +472,12 @@ __PACKAGE__->add_columns( default_value => \"current_timestamp", is_nullable => 0, }, + "deleted_on", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, "location", { data_type => "varchar", is_nullable => 1, size => 80 }, "permanent_location", @@ -925,8 +939,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-13 13:32:00 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CjfZjLZeYYp3VMuSFJX25A +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-01 17:33:12 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:joGnGYWVILPsYHE9CQxHxg __PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" ); -- 2.39.5