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') 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 v1.2.3 From 38a98e6bbe17416786d9d47ca7298d72d9baa1fe Mon Sep 17 00:00:00 2001 From: franck cuny Date: Mon, 6 Apr 2009 14:10:42 +0200 Subject: remove datetime --- lib/CPAN/cpants.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/CPAN/cpants.pm b/lib/CPAN/cpants.pm index 10f8275..e64dc29 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 InflateColumn::DateTime/ ); +__PACKAGE__->load_components( qw/ Core / ); __PACKAGE__->table( 'dist' ); __PACKAGE__->add_columns( -- cgit v1.2.3 From b3c04af1e6ab982a6b7111ac8fec89d253698d55 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Mon, 6 Apr 2009 14:11:28 +0200 Subject: remove modules --- lib/CPAN/mapcpan.pm | 49 +++++++++---------------------------------------- 1 file changed, 9 insertions(+), 40 deletions(-) (limited to 'lib') diff --git a/lib/CPAN/mapcpan.pm b/lib/CPAN/mapcpan.pm index 58a8c57..f93f8c8 100644 --- a/lib/CPAN/mapcpan.pm +++ b/lib/CPAN/mapcpan.pm @@ -64,6 +64,15 @@ __PACKAGE__->add_columns( 'is_nullable' => 1, 'size' => 0 }, + 'version' => { + 'data_type' => 'text', + 'is_auto_increment' => 0, + 'default_value' => undef, + 'is_foreign_key' => 0, + 'name' => 'version', + 'is_nullable' => 1, + 'size' => 0 + }, 'tests_success' => { 'data_type' => 'integer', 'is_auto_increment' => 0, @@ -94,45 +103,6 @@ __PACKAGE__->add_columns( ); __PACKAGE__->set_primary_key('id'); -package CPAN::cpanmap::modules; -use base 'DBIx::Class'; -use strict; -use warnings; - -__PACKAGE__->load_components( qw/ Core/ ); -__PACKAGE__->table( 'modules' ); - -__PACKAGE__->add_columns( - 'id' => { - 'data_type' => 'integer', - 'is_auto_increment' => 0, - 'default_value' => undef, - 'is_foreign_key' => 0, - 'name' => 'id', - 'is_nullable' => 0, - 'size' => 0 - }, - 'module' => { - 'data_type' => 'text', - 'is_auto_increment' => 0, - 'default_value' => undef, - 'is_foreign_key' => 0, - 'name' => 'module', - 'is_nullable' => 1, - 'size' => 0 - }, - 'in_dist' => { - 'data_type' => 'integer', - 'is_auto_increment' => 0, - 'default_value' => undef, - 'is_foreign_key' => 0, - 'name' => 'in_dist', - 'is_nullable' => 1, - 'size' => 0 - }, -); -__PACKAGE__->set_primary_key('id'); - package CPAN::cpanmap; use base 'DBIx::Class::Schema'; use strict; @@ -140,6 +110,5 @@ use warnings; __PACKAGE__->register_class( 'edges', 'CPAN::cpanmap::edges' ); __PACKAGE__->register_class( 'packages', 'CPAN::cpanmap::packages' ); -__PACKAGE__->register_class( 'modules', 'CPAN::cpanmap::modules' ); 1; -- cgit v1.2.3