From e3d3ef705c963b7db79ebf0ca6c6966b2ee41c4a Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 20 Mar 2020 10:39:42 +0000 Subject: [PATCH] Bug 22987: (RM follow-up) Schema Update Signed-off-by: Martin Renvoize --- Koha/Schema/Result/Biblioimage.pm | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/Biblioimage.pm b/Koha/Schema/Result/Biblioimage.pm index 400eef5047..090e6b20f6 100644 --- a/Koha/Schema/Result/Biblioimage.pm +++ b/Koha/Schema/Result/Biblioimage.pm @@ -51,6 +51,13 @@ __PACKAGE__->table("biblioimages"); data_type: 'mediumblob' is_nullable: 0 +=head2 timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + =cut __PACKAGE__->add_columns( @@ -64,6 +71,13 @@ __PACKAGE__->add_columns( { data_type => "mediumblob", is_nullable => 0 }, "thumbnail", { data_type => "mediumblob", is_nullable => 0 }, + "timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, ); =head1 PRIMARY KEY @@ -96,8 +110,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WdDuaUrR0IC6+8jJwlev6A +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-20 10:39:00 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f6elSD3dDk6vWE4bUirmew # You can replace this text with custom content, and it will be preserved on regeneration -- 2.39.5