Adding ISO string to log dates.

This commit is contained in:
Sergiotarxz 2023-06-13 18:46:19 +02:00
parent 206f2c48a2
commit 75466d7eac
2 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@ my $build = Module::Build->new(
'Module::Pluggable' => 0,
'Redis' => 0,
'List::AllUtils' => 0,
'DateTime::Format::Pg' => 0,
},
);
$build->create_build_script;

View File

@ -16,6 +16,7 @@ use Moo;
__PACKAGE__->table('player_pjs_log');
__PACKAGE__->load_components(qw/InflateColumn::DateTime/);
__PACKAGE__->add_columns(
uuid => {
data_type => 'uuid',
@ -33,6 +34,7 @@ __PACKAGE__->add_columns(
},
date => {
data_type => 'timestamp',
inflate_datetime => 1,
default_value => \'NOW()',
is_nullable => 0,
},
@ -43,7 +45,6 @@ sub content($self) {
}
__PACKAGE__->set_primary_key('uuid');
__PACKAGE__->belongs_to( 'owner', 'LasTres::Schema::Result::PJ' );
sub hash ($self) {