@@ -, +, @@ --- Koha/Schema/Result/Borrower.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) --- a/Koha/Schema/Result/Borrower.pm +++ a/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-04-06 15:46:57 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f6omVb7EtiysdaWTX3IRzg +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-04-07 12:49:45 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:r9V6UASBq4kq4qm6FZmcEA __PACKAGE__->has_many( "restrictions", --