From 3ee3c3198ae0c79a698f9037975a17c6fca31a69 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 13 Sep 2016 17:36:14 +0000 Subject: [PATCH] Bug 16276 - Update schema Signed-off-by: Kyle M Hall --- Koha/Schema/Result/Borrower.pm | 16 ++++++++++++++-- Koha/Schema/Result/Deletedborrower.pm | 16 ++++++++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm index ecf39e996a..85127533d8 100644 --- a/Koha/Schema/Result/Borrower.pm +++ b/Koha/Schema/Result/Borrower.pm @@ -421,6 +421,12 @@ __PACKAGE__->table("borrowers"); default_value: current_timestamp is_nullable: 0 +=head2 lastseen + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + =cut __PACKAGE__->add_columns( @@ -604,6 +610,12 @@ __PACKAGE__->add_columns( default_value => \"current_timestamp", is_nullable => 0, }, + "lastseen", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, ); =head1 PRIMARY KEY @@ -1232,8 +1244,8 @@ Composing rels: L -> ordernumber __PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber"); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-07-08 13:37:33 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GiEcKBFRhzHwXPekj6fSPg +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-09-13 17:32:29 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:23Yg0CXG1z8f5Bx92JCVoQ __PACKAGE__->belongs_to( "guarantor", diff --git a/Koha/Schema/Result/Deletedborrower.pm b/Koha/Schema/Result/Deletedborrower.pm index 4223d5b7e0..937a4a4e9a 100644 --- a/Koha/Schema/Result/Deletedborrower.pm +++ b/Koha/Schema/Result/Deletedborrower.pm @@ -418,6 +418,12 @@ __PACKAGE__->table("deletedborrowers"); default_value: current_timestamp is_nullable: 0 +=head2 lastseen + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + =cut __PACKAGE__->add_columns( @@ -589,11 +595,17 @@ __PACKAGE__->add_columns( default_value => \"current_timestamp", is_nullable => 0, }, + "lastseen", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-07-08 13:37:33 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Cunir7NU2+WyAmwi3U7mvA +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-09-13 17:32:29 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pcdyzQacTbFDJ9R1k0E8mA # You can replace this text with custom code or comments, and it will be preserved on regeneration -- 2.20.1