@@ -, +, @@ --- 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-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", --