Adding ISO string to log dates.
This commit is contained in:
parent
206f2c48a2
commit
75466d7eac
1
Build.PL
1
Build.PL
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue