https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37592
--- Comment #24 from Jonathan Druart <[email protected]> --- playing the following commands: git checkout v24.05.00 reset_all git checkout main updatedatabase perl misc/devel/update_dbix_class_files.pl --koha-conf $KOHA_CONF git commit -a -m"test diff" dbic git diff "test diff" commit contains a diff that should not be there (datetime vs timestamp): From f75fa56e49d62b7444926d06d351a74d33810bc9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart <[email protected]> Date: Mon, 25 Nov 2024 13:49:37 +0100 Subject: [PATCH 1/1] test diff --- Koha/Schema/Result/Booking.pm | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Koha/Schema/Result/Booking.pm b/Koha/Schema/Result/Booking.pm index 2231dbf19a3..6f8ec07b818 100644 --- a/Koha/Schema/Result/Booking.pm +++ b/Koha/Schema/Result/Booking.pm @@ -84,21 +84,21 @@ the end date of the booking =head2 creation_date - data_type: 'timestamp' + data_type: 'datetime' datetime_undef_if_invalid: 1 - default_value: current_timestamp + default_value: 'current_timestamp()' is_nullable: 0 -the timestamp for when a booking was created +the datetime for when a bookings was created =head2 modification_date - data_type: 'timestamp' + data_type: 'datetime' datetime_undef_if_invalid: 1 - default_value: current_timestamp + default_value: 'current_timestamp()' is_nullable: 0 -the timestamp for when a booking has been updated +the datetime for when a booking has been updated =head2 status @@ -154,16 +154,16 @@ __PACKAGE__->add_columns( }, "creation_date", { - data_type => "timestamp", + data_type => "datetime", datetime_undef_if_invalid => 1, - default_value => \"current_timestamp", + default_value => "current_timestamp()", is_nullable => 0, }, "modification_date", { - data_type => "timestamp", + data_type => "datetime", datetime_undef_if_invalid => 1, - default_value => \"current_timestamp", + default_value => "current_timestamp()", is_nullable => 0, }, "status", @@ -257,8 +257,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-10-24 16:23:05 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kTR2kwiwY2PnjU1E0P+CMQ +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-11-25 12:47:59 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QU3grfGiob0SxIHPVbY6ZA # You can replace this text with custom code or comments, and it will be preserved on regeneration -- 2.34.1 -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
