From d8224b6739cbb6aa69d7a6e741611ff32d537732 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 27 Mar 2023 14:23:51 +0000 Subject: [PATCH] Bug 23486: DO NOT PUSH - Schema Updates --- Koha/Schema/Result/Borrower.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm index 1f01994cd9..466e59805d 100644 --- a/Koha/Schema/Result/Borrower.pm +++ b/Koha/Schema/Result/Borrower.pm @@ -595,7 +595,8 @@ time of last change could be useful for synchronization with external systems (a data_type: 'datetime' datetime_undef_if_invalid: 1 - is_nullable: 1 + default_value: 'current_timestamp()' + is_nullable: 0 last time a patron has been seen (connected at the OPAC or staff interface) @@ -831,7 +832,8 @@ __PACKAGE__->add_columns( { data_type => "datetime", datetime_undef_if_invalid => 1, - is_nullable => 1, + default_value => "current_timestamp()", + is_nullable => 0, }, "lang", { @@ -2103,8 +2105,8 @@ Composing rels: L -> permission __PACKAGE__->many_to_many("permissions", "user_permissions", "permission"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-06 14:23:57 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/63fcorna7WyO+DyLg8qLA +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-27 14:19:06 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pZUssCHCfr3ACb1b73vDXw __PACKAGE__->has_many( "restrictions", -- 2.30.2