From d4369fe70f4704913fed53c20026d091ee9a555f Mon Sep 17 00:00:00 2001 From: franck cuny Date: Mon, 6 Apr 2009 12:28:36 +0200 Subject: use inflate datetime --- lib/CPAN/cpants.pm | 2 +- lib/CPAN/mapcpan.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/CPAN') diff --git a/lib/CPAN/cpants.pm b/lib/CPAN/cpants.pm index 686c834..10f8275 100644 --- a/lib/CPAN/cpants.pm +++ b/lib/CPAN/cpants.pm @@ -744,7 +744,7 @@ use base 'DBIx::Class'; use strict; use warnings; -__PACKAGE__->load_components( qw/ Core/ ); +__PACKAGE__->load_components( qw/ Core InflateColumn::DateTime/ ); __PACKAGE__->table( 'dist' ); __PACKAGE__->add_columns( diff --git a/lib/CPAN/mapcpan.pm b/lib/CPAN/mapcpan.pm index 7dcd13e..58a8c57 100644 --- a/lib/CPAN/mapcpan.pm +++ b/lib/CPAN/mapcpan.pm @@ -42,7 +42,7 @@ use base 'DBIx::Class'; use strict; use warnings; -__PACKAGE__->load_components( qw/ Core/ ); +__PACKAGE__->load_components( qw/InflateColumn::DateTime Core/ ); __PACKAGE__->table( 'packages' ); __PACKAGE__->add_columns( @@ -83,7 +83,7 @@ __PACKAGE__->add_columns( 'size' => 0 }, 'released' => { - 'data_type' => 'date', + 'data_type' => 'datetime', 'is_auto_increment' => 0, 'default_value' => undef, 'is_foreign_key' => 0, -- cgit 1.4.1