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/CPAN/mapcpan.pm') 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 1.4.1